From 92d0e1247e9f35101dda85d46ef99e249703a9f6 Mon Sep 17 00:00:00 2001 From: Renan Bernordi Date: Tue, 26 Nov 2024 13:44:57 -0300 Subject: [PATCH] bloqueio de acesso a pastas especificas --- default.conf | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/default.conf b/default.conf index 01d9930..134c89e 100644 --- a/default.conf +++ b/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 / {