From 5839fa3e574ee42815a8adce82bcd707c5d9e57d Mon Sep 17 00:00:00 2001 From: scith Date: Mon, 22 Aug 2016 00:07:12 +0200 Subject: [PATCH] Attempt at fixing nginx --- conf/nginx.conf | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 45a6ab8..fbf7db9 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -13,22 +13,18 @@ location YNH_WWW_PATH { fastcgi_param SCRIPT_FILENAME $request_filename; } - location ~* \.(?:ico|css|js|gif|jpe?g|png|ttf|woff)$ { + location ~ ^YNH_WWW_PATH(?:ico|css|js|gif|jpe?g|png|ttf|woff)$ { access_log off; expires 30d; add_header Pragma public; add_header Cache-Control "public, mustrevalidate, proxy-revalidate"; } - location ~ /\.ht { + location = YNH_WWW_PATHprotected { deny all; } - location /protected { - deny all; - } - - location /uploads/file { + location = YNH_WWW_PATHuploads/file { deny all; }