Manages status/ping path in FPM pools

This commit is contained in:
Emilien Mantel
2017-11-22 17:02:51 +01:00
parent de41097cde
commit df8b58b46a
3 changed files with 67 additions and 5 deletions

23
tests/templates/site.j2 Normal file
View File

@@ -0,0 +1,23 @@
server {
server_name {{ vhost }};
root /var/www;
{% if php_fpm_poold.0.status_path is defined %}
location = {{ php_fpm_poold.0.status_path }} {
include {{ nginx_include }};
fastcgi_pass unix:{{ php_default_fpm_sock }};
}
{% endif %}
{% if php_fpm_poold.0.ping_path is defined %}
location = {{ php_fpm_poold.0.ping_path }} {
include {{ nginx_include }};
fastcgi_pass unix:{{ php_default_fpm_sock }};
}
{% endif %}
location ~ \.php$ {
include {{ nginx_include }};
fastcgi_pass unix:{{ php_default_fpm_sock }};
}
}