mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-03-13 05:48:52 +01:00
92 lines
2.2 KiB
ApacheConf
92 lines
2.2 KiB
ApacheConf
Listen 8080
|
|
|
|
<VirtualHost *:8080>
|
|
DocumentRoot /usr/share/zabbix/
|
|
|
|
ServerName zabbix
|
|
|
|
DirectoryIndex ${HTTP_INDEX_FILE}
|
|
|
|
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
|
|
AddType application/x-httpd-php-source .phps
|
|
|
|
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
|
|
|
<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
|
|
Require all granted
|
|
|
|
<FilesMatch \.(php|phar)$>
|
|
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
|
</FilesMatch>
|
|
|
|
<filesMatch "\.(ico)$">
|
|
ExpiresActive On
|
|
ExpiresDefault "access plus 1 year"
|
|
Header append Cache-Control "public"
|
|
</filesMatch>
|
|
|
|
<filesMatch "\.(js|css|png|jpg|jpeg|gif|xml|txt)$">
|
|
ExpiresActive On
|
|
ExpiresDefault "access plus 14 day"
|
|
Header append Cache-Control "public"
|
|
</filesMatch>
|
|
</Directory>
|
|
|
|
<Directory "/usr/share/zabbix/conf">
|
|
Require all denied
|
|
<files *.php>
|
|
Order deny,allow
|
|
Deny from all
|
|
</files>
|
|
</Directory>
|
|
|
|
<Directory "/usr/share/zabbix/app">
|
|
Require all denied
|
|
<files *.php>
|
|
Order deny,allow
|
|
Deny from all
|
|
</files>
|
|
</Directory>
|
|
|
|
<Directory "/usr/share/zabbix/include">
|
|
Require all denied
|
|
<files *.php>
|
|
Order deny,allow
|
|
Deny from all
|
|
</files>
|
|
</Directory>
|
|
|
|
<Directory "/usr/share/zabbix/local">
|
|
Require all denied
|
|
<files *.php>
|
|
Order deny,allow
|
|
Deny from all
|
|
</files>
|
|
</Directory>
|
|
|
|
<Directory "/usr/share/zabbix/locale">
|
|
Require all denied
|
|
<files *.php>
|
|
Order deny,allow
|
|
Deny from all
|
|
</files>
|
|
</Directory>
|
|
|
|
<Directory "/usr/share/zabbix/vendor">
|
|
Require all denied
|
|
<files *.php>
|
|
Order deny,allow
|
|
Deny from all
|
|
</files>
|
|
</Directory>
|
|
</VirtualHost>
|