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

Leave a Reply

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