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; }