mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-08-09 16:45:05 +02:00
Added PHP status and ping pages processing
This commit is contained in:
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||
php_value[max_input_vars] = 10000
|
||||
php_value[date.timezone] = ${PHP_TZ}
|
||||
|
||||
; PHP-FPM monitoring
|
||||
pm.status_path = /status
|
||||
ping.path = /ping
|
||||
|
@ -5,6 +5,13 @@
|
||||
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
|
||||
AddType application/x-httpd-php-source .phps
|
||||
|
||||
<LocationMatch "/(ping|status)">
|
||||
Order Allow,Deny
|
||||
Allow from all
|
||||
|
||||
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
||||
</LocationMatch>
|
||||
|
||||
<Directory "/usr/share/zabbix">
|
||||
Options FollowSymLinks
|
||||
AllowOverride None
|
||||
|
@ -30,6 +30,13 @@ Listen 8443
|
||||
# HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
|
||||
Header always set Strict-Transport-Security "max-age=63072000"
|
||||
|
||||
<LocationMatch "/(ping|status)">
|
||||
Order Allow,Deny
|
||||
Allow from all
|
||||
|
||||
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
||||
</LocationMatch>
|
||||
|
||||
<Directory "/usr/share/zabbix">
|
||||
Options FollowSymLinks
|
||||
AllowOverride None
|
||||
|
Reference in New Issue
Block a user