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

30 lines
662 B
Plaintext
Raw Normal View History

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;
}
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) {
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;
}
}