File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff 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
8787php-fpm status output:
8888pool: www
8989process manager: dynamic
@@ -140,6 +140,21 @@ $ echo $?
1401400
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
145160More and more people are looking for health checks on kubernetes for php-fpm, here is an example of livenessProbe and readinessProbe:
You can’t perform that action at this time.
0 commit comments