-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathphp_fpm_status_vhost.conf
More file actions
30 lines (22 loc) · 877 Bytes
/
php_fpm_status_vhost.conf
File metadata and controls
30 lines (22 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- mode: nginx; mode: flyspell-prog; ispell-current-dictionary: american -*-
### The configuration for the status pages of php-fpm. As described in
### http://www.php.net/manual/en/install.fpm.configuration.php.
### php-fpm provides a status and a heartbeat page that is served through the web server.
### Here's an example configuration for them.
## The status page is at /fpm-status. Only local access is
## allowed. Non authorized access returns a 404 through the error_page
## directive.
location = /fpm-status {
if ($dont_show_fpm_status) {
return 404;
}
fastcgi_pass phpcgi;
}
## The ping page is at /ping and returns the string configured at the php-fpm level.
## Also only local network connections (loopback and LAN) are permitted.
location = /ping {
if ($dont_show_fpm_status) {
return 404;
}
fastcgi_pass phpcgi;
}