Skip to content

Instantly share code, notes, and snippets.

@zetavg
Created March 9, 2014 18:14
Show Gist options
  • Save zetavg/9451905 to your computer and use it in GitHub Desktop.
Save zetavg/9451905 to your computer and use it in GitHub Desktop.
Apache2 conf to ban access to sensitive files
<Files ~ "(^\.git|.swp$)">
Order allow,deny
Deny from all
Satisfy all
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment