From b5fd13d1eee647bdc02c25f895b8058eaec1925d Mon Sep 17 00:00:00 2001 From: ewilly Date: Sun, 24 Apr 2016 17:17:44 +0200 Subject: [PATCH] Fix #11 --- conf/nginx.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }