bloqueio de acesso a pastas especificas

This commit is contained in:
Renan Bernordi 2024-11-26 13:44:57 -03:00
parent 456a76cb0a
commit 92d0e1247e

View file

@ -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 / {