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