nginx exact match
This commit is contained in:
@ -27,7 +27,7 @@ server {
|
||||
}
|
||||
|
||||
# Prevent Direct Access To Protected Folders
|
||||
location ~ ^/(app|bootstrap|config|database|resources|routes|storage|tests|artisan) {
|
||||
location ~ ^/(^app$|bootstrap|config|database|resources|routes|storage|tests|artisan) {
|
||||
deny all;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user