From 8c20f4d209f3a4be482265c87783f6c3e10e60af Mon Sep 17 00:00:00 2001 From: zbuse Date: Thu, 6 Feb 2014 23:55:45 +0800 Subject: [PATCH] Update hosting.tpl --- install/debian/templates/web/nginx/hosting.tpl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/install/debian/templates/web/nginx/hosting.tpl b/install/debian/templates/web/nginx/hosting.tpl index 15961c95c..04fddad87 100755 --- a/install/debian/templates/web/nginx/hosting.tpl +++ b/install/debian/templates/web/nginx/hosting.tpl @@ -22,14 +22,8 @@ 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;} - + location ~ .*\.(mp3|ftpquota|htaccess|svn|ht|git|hg|bzr)?\$ {deny all;} disable_symlinks if_not_owner from=%docroot%; - include %home%/%user%/conf/web/nginx.%domain%.conf*; }