Change folder of PHP5-FPM status/ping output

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
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
work (file not found). What should I do to move the status/ping output
/stats/ folder? Thanks in advance. :slight_smile: