Deny access to .svn directories with Apache2 / lighttpd

If you’re using SVN to control your web application, your certainly need to deny access to .svn sub-directories.

With Apache2

    <DirectoryMatch "^/.*/\.svn/">
            Order allow,deny
            Deny from all
    </DirectoryMatch>

With lighttpd

    $HTTP["url"] =~ "/\.svn/" {
        url.access-deny = ( "" )
    }

This entry was written by CharlyBr, posted on May 28, 2008 at 7:17 am, filed under http and tagged , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post.

Timeline

1 Comment

Have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

:

: