File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,11 @@ server {
2727 proxy_pass https://%ip%:%web_ssl_port%;
2828 }
2929
30- location ~ /\.ht {deny all;}
31- location ~ /.svn/ {deny all;}
30+ location ~ /\.ht {return 404;}
31+ location ~ /\.svn/ {return 404;}
32+ location ~ /\.git/ {return 404;}
33+ location ~ /\.hg/ {return 404;}
34+ location ~ /\.bzr/ {return 404;}
3235
3336 include %home%/%user%/conf/snginx.%domain%.conf*;
3437}
Original file line number Diff line number Diff line change @@ -24,8 +24,11 @@ server {
2424 proxy_pass http://% ip% :% web_port% ;
2525 }
2626
27- location ~ /\.ht { deny all;}
28- location ~ /.svn/ { deny all;}
27+ location ~ /\.ht { return 404;}
28+ location ~ /\.svn/ { return 404;}
29+ location ~ /\.git/ { return 404;}
30+ location ~ /\.hg/ { return 404;}
31+ location ~ /\.bzr/ { return 404;}
2932
3033 include %home%/%user%/conf/nginx.%domain%.conf*;
3134}
You can’t perform that action at this time.
0 commit comments