mirror of
https://github.com/manualdousuario/marreta.git
synced 2025-09-02 18:51:06 +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-XSS-Protection "1; mode=block" always;
|
||||||
add_header X-Content-Type-Options "nosniff" always;
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
|
|
||||||
location ^~ /logs/ {
|
location ~ ^/(logs|cache|inc|data)/ {
|
||||||
deny all;
|
return 301 /;
|
||||||
return 403;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ^~ /cache/ {
|
|
||||||
deny all;
|
|
||||||
return 403;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
Loading…
Add table
Reference in a new issue