diff --git a/config/nginx.conf b/config/nginx.conf index 107d202..ebc7efc 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -65,5 +65,16 @@ http { log_not_found off; deny all; } + + # allow fpm ping and status from localhost + # + location ~ ^/(fpm-status|fpm-ping)$ { + access_log off; + allow 127.0.0.1; + deny all; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + fastcgi_pass 127.0.0.1:9000; + } } }