openmind ☃   August 25, 2008  ☃  Apache: Block Access To Git Directories  (, )

<DirectoryMatch ".git">
    AuthType Basic
    AuthName "nope"
    AuthUserFile /etc/httpd/passwords
    Require user admin
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</DirectoryMatch>

blog comments powered by Disqus