2018-06-22 14:53:29 +00:00
|
|
|
# Webinoly Admin-Tools NGINX CONFIGURATION
|
2017-09-16 20:37:13 +00:00
|
|
|
|
2018-06-22 14:53:29 +00:00
|
|
|
# WebinolyNginxServerStart
|
2017-09-16 20:37:13 +00:00
|
|
|
server {
|
|
|
|
|
2018-06-22 14:53:29 +00:00
|
|
|
listen 22222 default_server deferred;
|
|
|
|
listen [::]:22222 default_server;
|
2017-09-16 20:37:13 +00:00
|
|
|
|
2018-06-22 14:53:29 +00:00
|
|
|
access_log /var/log/nginx/22222.access.log we_log;
|
|
|
|
error_log /var/log/nginx/22222.error.log;
|
2017-09-16 20:37:13 +00:00
|
|
|
|
2018-06-22 14:53:29 +00:00
|
|
|
root /var/www/22222/htdocs;
|
|
|
|
index index.php index.htm index.html;
|
2017-09-16 20:37:13 +00:00
|
|
|
|
2018-06-22 14:53:29 +00:00
|
|
|
# Turn on directory listing
|
|
|
|
autoindex on;
|
2017-09-16 20:37:13 +00:00
|
|
|
|
2018-06-22 14:53:29 +00:00
|
|
|
# HTTP Authentication on port 22222
|
|
|
|
include common/acl.conf;
|
2017-09-16 20:37:13 +00:00
|
|
|
|
2018-06-22 14:53:29 +00:00
|
|
|
# PHP Support
|
|
|
|
include common/php.conf;
|
|
|
|
include common/locations.conf;
|
2017-09-16 20:37:13 +00:00
|
|
|
|
2018-06-22 14:53:29 +00:00
|
|
|
# Status pages
|
|
|
|
location = /nginx_status {
|
|
|
|
stub_status on;
|
|
|
|
access_log off;
|
|
|
|
}
|
|
|
|
location ~ ^/(status|ping)$ {
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_pass php;
|
|
|
|
}
|
2017-09-16 20:37:13 +00:00
|
|
|
|
2018-06-22 14:53:29 +00:00
|
|
|
# Display menu at location /fpm/status/
|
|
|
|
location = /fpm/status/ {}
|
2017-09-16 20:37:13 +00:00
|
|
|
|
2018-06-22 14:53:29 +00:00
|
|
|
location ~ /fpm/status/(.*) {
|
|
|
|
try_files $uri =404;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_NAME /status;
|
|
|
|
fastcgi_pass $1;
|
|
|
|
}
|
2017-09-16 20:37:13 +00:00
|
|
|
|
|
|
|
}
|
2018-06-22 14:53:29 +00:00
|
|
|
# WebinolyNginxServerEnd
|