From 41022f1c265ea69d43e7683c2a12e06b0fea641e Mon Sep 17 00:00:00 2001 From: zbuse Date: Thu, 6 Feb 2014 23:48:44 +0800 Subject: [PATCH] remove include remove include %home%/%user%/conf/nginx.%domain%.conf*; --- install/rhel/templates/web/nginx/caching.tpl | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/install/rhel/templates/web/nginx/caching.tpl b/install/rhel/templates/web/nginx/caching.tpl index 8860be198..f33bab9d9 100755 --- a/install/rhel/templates/web/nginx/caching.tpl +++ b/install/rhel/templates/web/nginx/caching.tpl @@ -30,12 +30,6 @@ server { location @fallback { proxy_pass http://%ip%:%web_port%; } - - location ~ /\.ht {return 404;} - location ~ /\.svn/ {return 404;} - location ~ /\.git/ {return 404;} - location ~ /\.hg/ {return 404;} - location ~ /\.bzr/ {return 404;} - - include %home%/%user%/conf/nginx.%domain%.conf*; + + location ~ .*\.(mp3|ftpquota|htaccess|svn|ht|git|hg|bzr)?\$ {deny all;} }