Skip to content

Commit 8779bb3

Browse files
committed
Rename poll, status and ping
1 parent b9ea81f commit 8779bb3

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

php_fpm_status_vhost.conf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
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
}

upstream_phpcgi_tcp.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@ upstream www0 {
4646
upstream www1 {
4747
server 127.0.0.1:9002;
4848
}
49+
50+
## The PHP TCP upstream that corresponds to the third pool: www2.
51+
upstream www2 {
52+
server 127.0.0.1:9003;
53+
}

upstream_phpcgi_unix.conf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ upstream phpcgi {
1414
## algorithm was introduced in versions 1.3.1 and 1.2.2.
1515
least_conn;
1616

17-
server unix:/var/run/php-fpm.sock;
18-
server unix:/var/run/php-fpm-zwei.sock;
17+
server unix:/var/run/php-fpm-www0.sock;
18+
server unix:/var/run/php-fpm-www1.sock;
1919
## Create a backend connection cache. Note that this requires
2020
## Nginx version greater or equal to 1.1.4.
2121
## Cf. http://nginx.org/en/CHANGES. Comment out the following
@@ -27,7 +27,7 @@ upstream phpcgi {
2727
## side by side php-fpm. If you don't have it installed comment it
2828
## out.
2929
upstream phpcgi_backup {
30-
server unix:/var/run/php-fpm-bkp.sock;
30+
server unix:/var/run/php-fpm-www2.sock;
3131
## Create a backend connection cache. Note that this requires
3232
## Nginx version greater or equal to 1.1.4.
3333
## Cf. http://nginx.org/en/CHANGES. Comment out the
@@ -39,15 +39,15 @@ upstream phpcgi_backup {
3939

4040
## The PHP TCP upstream that corresponds to the first pool: www0.
4141
upstream www0 {
42-
server unix:/var/run/php-fpm.sock;
42+
server unix:/var/run/php-fpm-www0.sock;
4343
}
4444

4545
## The PHP TCP upstream that corresponds to the second pool: www1.
4646
upstream www1 {
47-
server unix:/var/run/php-fpm-zwei.sock;
47+
server unix:/var/run/php-fpm-www1.sock;
4848
}
4949

5050
## The PHP TCP upstream that corresponds to the third pool: www2.
5151
upstream www2 {
52-
server unix:/var/run/php-fpm-drei.sock;
52+
server unix:/var/run/php-fpm-www2.sock;
5353
}

0 commit comments

Comments
 (0)