From 1e2409f991d280be0bc60a95dfb092891222245b Mon Sep 17 00:00:00 2001 From: zbuse Date: Thu, 6 Feb 2014 23:50:46 +0800 Subject: [PATCH] Update hosting.stpl --- install/rhel/templates/web/nginx/hosting.stpl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/install/rhel/templates/web/nginx/hosting.stpl b/install/rhel/templates/web/nginx/hosting.stpl index aca458a4b..9043ef138 100755 --- a/install/rhel/templates/web/nginx/hosting.stpl +++ b/install/rhel/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*; }