From 0d56e552429cf9b3fad387d6d2f6461f47fe20cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 23 May 2024 17:58:13 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 6915e58..ffb94af 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -38,19 +38,10 @@ location __PATH__/ { return 403; } - location ~ ^__PATH__/tmp/ { + ## disable all access to the following directories + location ~ ^__PATH__/(config|tmp|core|lang) { deny all; - return 403; - } - - location ~ ^__PATH__/core/ { - deny all; - return 403; - } - - location ~ ^__PATH__/lang/ { - deny all; - return 403; + return 403; # replace with 404 to not show these directories exist } location ~ ^__PATH__/\.ht {