2018-11-30 17:42:55 +01:00
|
|
|
upstream phpstatus {
|
2018-12-02 00:39:04 +01:00
|
|
|
server 127.0.0.1:9000;
|
2018-11-30 17:42:55 +01:00
|
|
|
server unix:/run/php/php7.0-fpm.sock;
|
|
|
|
server 127.0.0.1:9070;
|
|
|
|
server unix:/run/php70-fpm.sock;
|
|
|
|
}
|
|
|
|
|
2018-10-13 15:04:41 +02:00
|
|
|
server {
|
|
|
|
listen 127.0.0.1:80;
|
2018-11-30 17:42:55 +01:00
|
|
|
server_name 127.0.0.1 localhost;
|
2018-12-19 13:39:09 +01:00
|
|
|
access_log off;
|
|
|
|
log_not_found off;
|
|
|
|
root /var/www/html;
|
2018-11-30 17:42:55 +01:00
|
|
|
location ~ /(stub_status|nginx_status) {
|
2018-10-13 15:04:41 +02:00
|
|
|
stub_status on;
|
|
|
|
allow 127.0.0.1;
|
|
|
|
deny all;
|
2018-11-30 17:42:55 +01:00
|
|
|
access_log off;
|
|
|
|
log_not_found off;
|
2018-10-13 15:04:41 +02:00
|
|
|
}
|
2018-11-30 17:42:55 +01:00
|
|
|
location ~ /(status|ping) {
|
2018-10-13 15:04:41 +02:00
|
|
|
include fastcgi_params;
|
|
|
|
allow 127.0.0.1;
|
|
|
|
deny all;
|
2018-11-30 17:42:55 +01:00
|
|
|
fastcgi_pass phpstatus;
|
|
|
|
access_log off;
|
|
|
|
log_not_found off;
|
2018-10-13 15:04:41 +02:00
|
|
|
}
|
|
|
|
}
|