Now that I have nginx setup I need to be able to hide my .git
directories. What kind of rewrite would I need to stop prying eyes? And where in the server {}
or http {}
block would it go?
views:
84answers:
1Does this work if the `.git` folder is in a subdirectory like `/folder/.git/`?
Xeoncross
2010-06-08 17:55:24
Yes, it does. "location ~" matches *regular expression*, not a sub-path.
rzab
2010-06-09 08:31:41