php-fpm status page

To set up a php-fpm status page for the domain do the following.

Create /var/www/vhosts/system/domain.net/conf/php.ini and add this into it:

[php-fpm-pool-settings]
pm.status_path = /status

In the Additional nginx directives section for that domain add this:

location ~ ^/status$ {
   allow 127.0.0.1;
   deny all;
   fastcgi_split_path_info ^((?U).+\\.php)(/?.+)$;
   fastcgi_param PATH_INFO $fastcgi_path_info;
   fastcgi_pass "unix:///var/www/vhosts/system/pac.domain.net/php-fpm.sock";
   include /etc/nginx/fastcgi.conf;
}