From 041bc3c460bff6f2e9c7065ac15e86d8982814db Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 18 May 2021 00:09:23 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index d1c54ad..f1da700 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -35,7 +35,22 @@ location ^~ __PATH__/ { } ## disable all access to the following directories - location ~ ^__PATH__/(config/|tmp/|core/|lang/) { + location ^~ __PATH__/config/ { + deny all; + return 403; + } + + location ^~ __PATH__/tmp/ { + deny all; + return 403; + } + + location ^~ __PATH__/core/ { + deny all; + return 403; + } + + location ^~ __PATH__/lang/ { deny all; return 403; }