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