Hide .svn folders from Appache

Posted by | Posted in SVN | Posted on 08-12-2009

Use following directive in our httpd.conf to prevent Apache from descending into .svn folders.

# Disallow browsing of Subversion working copy administrative dirs.
<directorymatch "^/.*/\.svn/">
    Order deny,allow
    Deny from all
</directorymatch>

Post a comment