Welcome! Log In Create A New Profile

Advanced

Change folder of PHP5-FPM status/ping output

Lorenzo Raffio
September 26, 2012 07:58AM
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. :)
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Change folder of PHP5-FPM status/ping output

Lorenzo Raffio September 26, 2012 07:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready