ubuntu-nginx-web-server/etc/nginx/conf.d/stub_status.conf

27 lines
594 B
Plaintext
Raw Normal View History

2018-11-30 17:42:55 +01:00
upstream phpstatus {
server 127.0.0.1:9000
server unix:/run/php/php7.0-fpm.sock;
server 127.0.0.1:9070;
server unix:/run/php70-fpm.sock;
}
server {
listen 127.0.0.1:80;
2018-11-30 17:42:55 +01:00
server_name 127.0.0.1 localhost;
location ~ /(stub_status|nginx_status) {
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-11-30 17:42:55 +01:00
location ~ /(status|ping) {
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;
}
}