Disallow access to vendor directory on Nginx
This commit is contained in:
parent
ee5cd982c0
commit
9c7058176b
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ server {
|
||||
expires 14d;
|
||||
}
|
||||
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/) {
|
||||
location ~ /(app\/|conf[^\.]|include\/|local\/|locale\/|vendor\/) {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user