1
0
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:
Alexey Pustovalov 2023-01-06 13:28:45 +09:00
parent 153a758956
commit 35d3837b0d
18 changed files with 18 additions and 18 deletions
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

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }