3 ms·
For nginx: # deny access to HG and Git repositories location ~ /\.(hg|git)/ { deny all; }
by wooptoo 9y ago
For nginx:
# deny access to HG and Git repositories
location ~ /\.(hg|git)/ {
deny all;
}
- kchr 9y agoDoesn't solve the issue of the data being available on a public server, though. Any piece of code run by the web server would most likely have access to those directories, as well as any other static content in the web root...