525 - Updated zabbix checks vhost including php (#46)
Co-authored-by: muppeth <muppeth@disroot.org> Reviewed-on: #46 Reviewed-by: meaz <meaz@no-reply@disroot.org>
This commit is contained in:
parent
1487af80da
commit
3c0d238f24
1 changed files with 16 additions and 3 deletions
|
@ -1,10 +1,23 @@
|
|||
server {
|
||||
listen 10061;
|
||||
listen {{ item.port }};
|
||||
|
||||
location /nginx_status {
|
||||
stub_status on;
|
||||
location /basic_status {
|
||||
stub_status;
|
||||
access_log off;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
}
|
||||
{% if item.php_check defined and item.php_check == 'true' %}
|
||||
location ~ ^/(status|ping)$ {
|
||||
access_log off;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_pass unix:{{ pool_listen }};
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue