Forum: NGINX Change folder of PHP5-FPM status/ping output

Posted by Lorenzo Raffio (Guest)
on 2012-09-26 13:57
(Received via mailing list)
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. :)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.