added protection for hg git and bz

This commit is contained in:
Serghey Rodin 2011-09-21 11:37:30 +03:00
commit 6b18b20682
2 changed files with 10 additions and 4 deletions

View file

@ -27,8 +27,11 @@ server {
proxy_pass https://%ip%:%web_ssl_port%;
}
location ~ /\.ht {deny all;}
location ~ /.svn/ {deny all;}
location ~ /\.ht {return 404;}
location ~ /\.svn/ {return 404;}
location ~ /\.git/ {return 404;}
location ~ /\.hg/ {return 404;}
location ~ /\.bzr/ {return 404;}
include %home%/%user%/conf/snginx.%domain%.conf*;
}

View file

@ -24,8 +24,11 @@ server {
proxy_pass http://%ip%:%web_port%;
}
location ~ /\.ht {deny all;}
location ~ /.svn/ {deny all;}
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*;
}