From 1aaf51a622a1397125986809d972f542dd770824 Mon Sep 17 00:00:00 2001 From: zbuse Date: Thu, 6 Feb 2014 23:49:45 +0800 Subject: [PATCH] Update default.stpl --- install/rhel/templates/web/nginx/default.stpl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/install/rhel/templates/web/nginx/default.stpl b/install/rhel/templates/web/nginx/default.stpl index 53ad8d1b8..6f1b8659f 100755 --- a/install/rhel/templates/web/nginx/default.stpl +++ b/install/rhel/templates/web/nginx/default.stpl @@ -25,12 +25,6 @@ server { proxy_pass https://%ip%:%web_ssl_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/web/snginx.%domain%.conf*; + location ~ .*\.(mp3|ftpquota|htaccess|svn|ht|git|hg|bzr)?\$ {deny all;} }