Last active
December 11, 2015 18:49
-
-
Save fossil12/4644513 to your computer and use it in GitHub Desktop.
Apache: Deny access to git specific files on a webserver (all folders). (from http://serverfault.com/a/251003)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# deny access to the top-level git repository: | |
RewriteRule "^(.*/)?\.git" - [F,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment