66### php-fpm provides a status and a heartbeat page that is served through the web server.
77### Here's an example configuration for them.
88
9- ## The status page is at /fpm-status. Only local access is
9+ ## The status page is at /fpm-status-www0 . Only local access is
1010## allowed. Non authorized access returns a 404 through the error_page
1111## directive.
12- location = /fpm-status {
12+ location = /fpm-status -www0 {
1313 if ( $dont_show_fpm_status ) {
1414 return 404 ;
1515 }
1616 fastcgi_pass www0;
1717 access_log off;
1818}
1919
20- ## The ping page is at /ping and returns the string configured at the php-fpm level.
20+ ## The ping page is at /ping-www0 and returns the string configured at the php-fpm level.
2121## Also only local network connections (loopback and LAN) are permitted.
22- location = /ping {
22+ location = /ping-www0 {
2323 if ( $dont_show_fpm_status ) {
2424 return 404 ;
2525 }
@@ -31,20 +31,20 @@ location = /ping {
3131## php-fpm to have two pools and the URIs configured for the status
3232## and ping pages are as specified below. Zwei is 2 in german.
3333
34- ## The status page is at /fpm-status. Only local access is
34+ ## The status page is at /fpm-status-www1 . Only local access is
3535## allowed. Non authorized access returns a 404 through the error_page
3636## directive.
37- location = /fpm-status -zwei {
37+ location = /fpm-status -www1 {
3838 if ( $dont_show_fpm_status ) {
3939 return 404 ;
4040 }
4141 fastcgi_pass www1;
4242 access_log off;
4343}
4444
45- ## The ping page is at /ping and returns the string configured at the php-fpm level.
45+ ## The ping page is at /ping-www1 and returns the string configured at the php-fpm level.
4646## Also only local network connections (loopback and LAN) are permitted.
47- location = /ping-zwei {
47+ location = /ping-www1 {
4848 if ( $dont_show_fpm_status ) {
4949 return 404 ;
5050 }
@@ -57,20 +57,20 @@ location = /ping-zwei {
5757## for the status and ping pages are as specified below. Drei is 3 in
5858## german.
5959
60- ## The status page is at /fpm-status. Only local access is
60+ ## The status page is at /fpm-status-www2 . Only local access is
6161## allowed. Non authorized access returns a 404 through the error_page
6262## directive.
63- location = /fpm-status -drei {
63+ location = /fpm-status -www2 {
6464 if ( $dont_show_fpm_status ) {
6565 return 404 ;
6666 }
6767 fastcgi_pass www2;
6868 access_log off;
6969}
7070
71- ## The ping page is at /ping and returns the string configured at the php-fpm level.
71+ ## The ping page is at /ping-www2 and returns the string configured at the php-fpm level.
7272## Also only local network connections (loopback and LAN) are permitted.
73- location = /ping-drei {
73+ location = /ping-www2 {
7474 if ( $dont_show_fpm_status ) {
7575 return 404 ;
7676 }
0 commit comments