mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
added protection for hg git and bz
This commit is contained in:
parent
fbc3332b10
commit
6b18b20682
2 changed files with 10 additions and 4 deletions
|
@ -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*;
|
||||
}
|
||||
|
|
|
@ -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*;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue