mirror of
https://github.com/manualdousuario/marreta.git
synced 2025-09-01 18:20:22 +00:00
bloqueio de acesso a pastas especificas
This commit is contained in:
parent
456a76cb0a
commit
92d0e1247e
1 changed files with 2 additions and 8 deletions
10
default.conf
10
default.conf
|
@ -12,14 +12,8 @@ server {
|
|||
add_header X-XSS-Protection "1; mode=block" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
|
||||
location ^~ /logs/ {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
location ^~ /cache/ {
|
||||
deny all;
|
||||
return 403;
|
||||
location ~ ^/(logs|cache|inc|data)/ {
|
||||
return 301 /;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
|
Loading…
Add table
Reference in a new issue