From 95379c85dd5d2ec776d4c77d12e0b518ecbaf258 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 4 Apr 2022 19:26:43 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 02cfe94..f512234 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -22,7 +22,15 @@ location __PATH__/ { fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; } - location ~ ^__PATH__/(\.|Core|Specific) { + #location ~ ^__PATH__/(\.|Core|Specific) { + # deny all; + #} + + location ~ ^__PATH__/(\.ht|Core|Specific|config) { deny all; + return 404; } } + + + \ No newline at end of file