Change folder of PHP5-FPM status/ping output

Lorenzo Raffio multiformeingegno at gmail.com
Wed Sep 26 11:56:42 UTC 2012


I'm trying to change the directory of PHP5-FPM status/ping output. I have a
dir 'stats' on HOSTNAME/stats/ protected by auth_basic and I'd like to move
the output there! These are my current configs (default ones):

Nginx vhost declaration (server block):

### FPM Status
location ~ ^/(status|ping)$ {
  fastcgi_pass unix:/var/run/php5-fpm.sock;
  access_log      off;
}

In PHP5-FPM conf I have:

pm.status_path = /status
ping.path = /ping

I tried adding a /stats before the / on both nginx/php conf but it doesn't
work (file not found). What should I do to move the status/ping output on
/stats/ folder? Thanks in advance. :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120926/4f1bb56a/attachment.html>


More information about the nginx mailing list