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*; }