PHP-FPM status is empty
For the PHP-FPM status page to work properly under nginx, the following parameters must all be set:
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param SCRIPT_NAME /status; # see notes below
fastcgi_param SCRIPT_FILENAME ""; # see notes below
REQUEST_METHOD
and QUERY_STRING
are set by include fastcgi_params
. If you're using this configuration file, you don't need to set these again.
The value of SCRIPT_NAME
must match the value of pm.status_path
in your PHP-FPM configuration.
The value of SCRIPT_FILENAME
is unimportant, but it must be set. Omitting this parameter will give you an empty response.
I had to add this line into the location:
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;