Apache Configuration to Protect .svn Directories

This Apache configuration snippet can help protect in the case where someone performs a ‘svn checkout’ instead of a ‘svn export’ into a web accessible directory. It denies access to .svn directories.

<DirectoryMatch "\.svn/">
    Order Deny,Allow
    Deny from all
</DirectoryMatch>

Leave a Reply

Your email address will not be published. Required fields are marked *

*