Disallow access to vendor directory on Nginx

This commit is contained in:
Alexey Pustovalov 2023-01-06 13:28:45 +09:00
parent 8d1615a33a
commit e73ef0d59c
18 changed files with 18 additions and 18 deletions

View File

@ -41,7 +41,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -68,7 +68,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -41,7 +41,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -68,7 +68,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -41,7 +41,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -68,7 +68,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -41,7 +41,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -68,7 +68,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -41,7 +41,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -68,7 +68,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -41,7 +41,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -68,7 +68,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -41,7 +41,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -68,7 +68,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -41,7 +41,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -68,7 +68,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -41,7 +41,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}

View File

@ -68,7 +68,7 @@ server {
expires 14d;
}
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
deny all;
return 404;
}