mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-03-12 05:19:11 +01:00
Disallow access to vendor directory on Nginx
This commit is contained in:
parent
153a758956
commit
35d3837b0d
Dockerfiles
web-nginx-mysql
alpine/conf/etc/zabbix
centos/conf/etc/zabbix
ol/conf/etc/zabbix
rhel/conf/etc/zabbix
ubuntu/conf/etc/zabbix
web-nginx-pgsql
alpine/conf/etc/zabbix
centos/conf/etc/zabbix
ol/conf/etc/zabbix
ubuntu/conf/etc/zabbix
@ -41,7 +41,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ server {
|
|||||||
expires 14d;
|
expires 14d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||||
deny all;
|
deny all;
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user