It was a little bit confusing to set it up. So here’s the memo.
vi /etc/php5/fpm/pool.d/www.conf
pm.status_path = /status
listen = 127.0.0.1:9000vi /etc/nginx/sites-available/monitor
location ~ ^/(status|ping)$ {
include fastcgi_params;
#access_log off;
allow 127.0.0.1;
allow xx.xx.xx.xx;
deny all;
fastcgi_param SCRIPT_FILENAME /status;
fastcgi_pass 127.0.0.1:9000;
}Restart nginx and php-fpm processes.
Ref: Here