From c58aff5ebd6af3124468aa1a03644cf84bd9fcab Mon Sep 17 00:00:00 2001 From: zbuse Date: Thu, 6 Feb 2014 23:59:36 +0800 Subject: [PATCH] Update hosting.tpl --- install/ubuntu/templates/web/nginx/hosting.tpl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/install/ubuntu/templates/web/nginx/hosting.tpl b/install/ubuntu/templates/web/nginx/hosting.tpl index 15961c95c..8f03503ea 100755 --- a/install/ubuntu/templates/web/nginx/hosting.tpl +++ b/install/ubuntu/templates/web/nginx/hosting.tpl @@ -22,14 +22,9 @@ 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*; }