Thanks @Whitestrake,
I put that line before the “normal” fastcgi line and it did nothing. Is that where it should be?
Not sure what port 9000 is for … I tried without it and tried calling it localhost. None worked for me.
Now I’ve made a dedicated php-fpm process just for the status page so that I can use its socket like this:
# intercept request for status page
fastcgi /serverstatus /var/run/php/php7.1-fpm-status.sock
# all requests send to php-fpm socket
fastcgi / /var/run/php/php7.1-fpm-img.sock {
ext .php
split .php
index index.php
}
systemctl restart php7.1-fpm.service
- all expected sockets and processes created
systemctl restart caddy.service
- caddy starts and runs
But still no php-fpm status page 404