[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Hiding .svn from Apache

From: Theo Van Dinter <felicity_at_kluge.net>
Date: 2004-09-18 06:34:55 CEST

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

  • application/pgp-signature attachment: stored
Received on Sat Sep 18 06:35:15 2004

This is an archived mail posted to the Subversion Users mailing list.