diff --git a/conf/nginx.conf b/conf/nginx.conf index 57e2ab3..2da10cb 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -19,7 +19,11 @@ location YNH_EXAMPLE_PATH { fastcgi_param SCRIPT_FILENAME $request_filename; } - location ~ (uploads|private|thumbs)(?!/temp) { + location ~ (uploads|thumbs){ + deny all; + } + + location ~ private(?!/temp) { deny all; }