Skip to content

Commit

Permalink
Document how to change status page path
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomefi committed Apr 5, 2020
1 parent 078ab63 commit 4101ab6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Or with `verbose` to see php-fpm status output:

```console
$ php-fpm-healthcheck -v
Trying to connect to php-fpm via: localhost:9000
Trying to connect to php-fpm via: localhost:9000/status
php-fpm status output:
pool: www
process manager: dynamic
Expand Down Expand Up @@ -140,6 +140,21 @@ $ echo $?
0
```

### Alternative status page path

_Since v0.5.0_

While the default status page path is `/status`, you can replace it in your php-fpm configuration, in order to change
also in the script in you can specify `FCGI_STATUS_PATH` env var within your connection uri:

```console
$ FCGI_STATUS_PATH=/custom-status-path php-fpm-healthcheck -v
Trying to connect to php-fpm via: localhost:9000/custom-status-path
...
$ echo $?
0
```

## Kubernetes example

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

0 comments on commit 4101ab6

Please sign in to comment.