Skip to content

Instantly share code, notes, and snippets.

@phillcoxon
Forked from stephenhowells/gist:4021772
Last active January 2, 2016 10:59
Show Gist options
  • Select an option

  • Save phillcoxon/8293846 to your computer and use it in GitHub Desktop.

Select an option

Save phillcoxon/8293846 to your computer and use it in GitHub Desktop.
Apache conf.d code to hid all .git* folders and files
# do not allow .git version control files to be issued
<Directorymatch "^/.*/\.git+/">
Order deny,allow
Deny from all
</Directorymatch>
<Files ~ "^\.git">
Order allow,deny
Deny from all
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment