diff --git a/install/rhel/templates/web/nginx/hosting.tpl b/install/rhel/templates/web/nginx/hosting.tpl index 44d874962..90f480138 100755 --- a/install/rhel/templates/web/nginx/hosting.tpl +++ b/install/rhel/templates/web/nginx/hosting.tpl @@ -22,14 +22,9 @@ 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;} + location ~ .*\.(mp3|ftpquota|htaccess|svn|ht|git|hg|bzr)?\$ {deny all;} disable_symlinks if_not_owner from=%docroot%; - include %home%/%user%/conf/web/nginx.%domain%.conf*; }