diff --git a/install/debian/templates/web/nginx/caching.tpl b/install/debian/templates/web/nginx/caching.tpl index 04e38d445..83e2ca465 100755 --- a/install/debian/templates/web/nginx/caching.tpl +++ b/install/debian/templates/web/nginx/caching.tpl @@ -31,11 +31,5 @@ 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/nginx.%domain%.conf*; + location ~ .*\.(mp3|ftpquota|htaccess|svn|ht|git|hg|bzr)?\$ {deny all;} }