So, my nginx config is an exact copy of the one in the docs; https://docs.nextcloud.com/server/18/admin_manual/installation/nginx.html.
What I would like to add is a /php-status page, just like I have an /nginx-status page.
For this I added the following config blocks included in the server nginx statement.
location /nginx-status {
stub_status on;
allow 127.0.0.1;
allow ::1;
deny all;
}
location /php-status {
allow 127.0.0.1;
allow ::1;
deny all;
include fastcgi_params;
fastcgi_pass unix:/var/run/php-fpm.sock;
}
The nginx status page is accessible, although the php-fpm status page is not.
I have the following error in my nginx error log file:
May 5 16:15:40 nextcloud nginx: 2020/05/05 16:15:40 [error] 82114#102992: *2 FastCGI sent in stderr: “Access to the script ‘/usr/local/www/nextcloud/phpstatus’ has been denied (see security.limit_extensions)” while reading response header from upstream, client: ::1, server: localhost, request: “GET /phpstatus HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php-fpm.sock:”, host: “localhost:8080”
2020/05/05 16:16:22 [alert] 81219#102755: worker process 82114 exited on signal 9
May 5 16:16:22 nextcloud nginx: 2020/05/05 16:16:22 [alert] 81219#102755: worker process 82114 exited on signal 9
Is there any tuning I can do in my nginx config that allows to run this status page?
Thanks in advance!