From 657756bd4acaa22ec0d6947b4821440eea80cee4 Mon Sep 17 00:00:00 2001 From: plabuse Date: Mon, 9 Jan 2023 07:22:30 +0100 Subject: [PATCH] Protection de certains repertoires pour eviter le download --- conf/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 6b738ce..ab7db0b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -21,6 +21,11 @@ location __PATH__/ { fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $request_filename; } + + # Protection de certains repertoires + location ~ /(db|logs|tmp|image)/ { + deny all; + } ### End of PHP configuration part # Include SSOWAT user panel.