You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kenneth Porter <sh...@sewingwitch.com> on 2004/09/18 03:19:13 UTC

Hiding .svn from Apache

I'm thinking about putting my PHP-based website under Subversion, and 
checking out a copy in my web space. What, if anything, would I need to do 
to hide the .svn directory from Apache so it doesn't get served?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Hiding .svn from Apache

Posted by Theo Van Dinter <fe...@kluge.net>.
On Fri, Sep 17, 2004 at 08:19:13PM -0700, Kenneth Porter wrote:
> I'm thinking about putting my PHP-based website under Subversion, and 
> checking out a copy in my web space. What, if anything, would I need to do 
> to hide the .svn directory from Apache so it doesn't get served?

This seems to work nicely for me in the httpd.conf file:

<locationmatch "/.svn/">
order allow,deny
deny from all
</locationmatch>

It blocks all .svn directories, but I don't have any that I want people
accessing.

-- 
Randomly Generated Tagline:
"Only your father could take a part-time job at a small town paper,
 and wind up the target of international assassins."
         - Marge Simpson, Guess Who's Coming to Criticize Dinner