Skip to content

Commit 4101ab6

Browse files
committed
Document how to change status page path
1 parent 078ab63 commit 4101ab6

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Or with `verbose` to see php-fpm status output:
8383

8484
```console
8585
$ php-fpm-healthcheck -v
86-
Trying to connect to php-fpm via: localhost:9000
86+
Trying to connect to php-fpm via: localhost:9000/status
8787
php-fpm status output:
8888
pool: www
8989
process manager: dynamic
@@ -140,6 +140,21 @@ $ echo $?
140140
0
141141
```
142142

143+
### Alternative status page path
144+
145+
_Since v0.5.0_
146+
147+
While the default status page path is `/status`, you can replace it in your php-fpm configuration, in order to change
148+
also in the script in you can specify `FCGI_STATUS_PATH` env var within your connection uri:
149+
150+
```console
151+
$ FCGI_STATUS_PATH=/custom-status-path php-fpm-healthcheck -v
152+
Trying to connect to php-fpm via: localhost:9000/custom-status-path
153+
...
154+
$ echo $?
155+
0
156+
```
157+
143158
## Kubernetes example
144159

145160
More and more people are looking for health checks on kubernetes for php-fpm, here is an example of livenessProbe and readinessProbe:

0 commit comments

Comments
 (0)