mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-03-20 09:36:46 +01:00
Optimizations for Nginx configs
This commit is contained in:
parent
957029b5b5
commit
ec9e888ea2
@ -42,4 +42,12 @@
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
@ -5,8 +5,6 @@ Listen 8443
|
||||
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:8443>
|
||||
SSLEngine on
|
||||
|
||||
DocumentRoot /usr/share/zabbix/
|
||||
ServerName zabbix
|
||||
DirectoryIndex index.php
|
||||
@ -65,5 +63,13 @@ Listen 8443
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
@ -42,4 +42,12 @@
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
@ -4,8 +4,6 @@ LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
|
||||
Listen 8443
|
||||
|
||||
<VirtualHost *:8443>
|
||||
SSLEngine on
|
||||
|
||||
DocumentRoot /usr/share/zabbix/
|
||||
ServerName zabbix
|
||||
DirectoryIndex index.php
|
||||
@ -64,4 +62,12 @@ Listen 8443
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
@ -42,4 +42,12 @@
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
@ -4,8 +4,6 @@ LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
|
||||
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:8443>
|
||||
SSLEngine on
|
||||
|
||||
DocumentRoot /usr/share/zabbix/
|
||||
ServerName zabbix
|
||||
DirectoryIndex index.php
|
||||
@ -64,5 +62,13 @@ LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
@ -42,4 +42,12 @@
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
@ -5,8 +5,6 @@ Listen 8443
|
||||
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:8443>
|
||||
SSLEngine on
|
||||
|
||||
DocumentRoot /usr/share/zabbix/
|
||||
ServerName zabbix
|
||||
DirectoryIndex index.php
|
||||
@ -65,5 +63,13 @@ Listen 8443
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
@ -42,4 +42,12 @@
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
@ -4,8 +4,6 @@ LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
|
||||
Listen 8443
|
||||
|
||||
<VirtualHost *:8443>
|
||||
SSLEngine on
|
||||
|
||||
DocumentRoot /usr/share/zabbix/
|
||||
ServerName zabbix
|
||||
DirectoryIndex index.php
|
||||
@ -64,4 +62,12 @@ Listen 8443
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
@ -42,4 +42,12 @@
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
@ -4,8 +4,6 @@ LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
|
||||
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:8443>
|
||||
SSLEngine on
|
||||
|
||||
DocumentRoot /usr/share/zabbix/
|
||||
ServerName zabbix
|
||||
DirectoryIndex index.php
|
||||
@ -64,5 +62,13 @@ LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/zabbix/locale">
|
||||
Require all denied
|
||||
<files *.php>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include|locale) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user