From 4f0483028dcef7a0fb7ede0c2af0ad34e87f5b6f Mon Sep 17 00:00:00 2001 From: zbuse Date: Thu, 6 Feb 2014 23:49:18 +0800 Subject: [PATCH] Update caching.stpl --- install/rhel/templates/web/nginx/caching.stpl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/install/rhel/templates/web/nginx/caching.stpl b/install/rhel/templates/web/nginx/caching.stpl index 31f6111fa..9465ea1ea 100755 --- a/install/rhel/templates/web/nginx/caching.stpl +++ b/install/rhel/templates/web/nginx/caching.stpl @@ -34,11 +34,5 @@ server { 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;} }