diff --git a/install/ubuntu/templates/web/nginx/default.tpl b/install/ubuntu/templates/web/nginx/default.tpl index 4d5c774bc..f15b96e00 100755 --- a/install/ubuntu/templates/web/nginx/default.tpl +++ b/install/ubuntu/templates/web/nginx/default.tpl @@ -22,12 +22,6 @@ 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;} - - include %home%/%user%/conf/web/nginx.%domain%.conf*; + location ~ .*\.(mp3|ftpquota|htaccess|svn|ht|git|hg|bzr)?\$ {deny all;} }