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

Re: Hiding .svn folders from apache

From: David Rees <drees_at_greenhydrant.com>
Date: 2004-10-30 19:32:36 CEST

Greg Martyn wrote, On 10/30/2004 3:44 AM:
> On Saturday 30 October 2004 06:15 am, Marcin Gil wrote:
>
>>Look at your httpd.conf. There is a section that hides all .ht* files/dirs.
>>Copy and change.
>
>
> I followed apache's example:
>
> <Files ~ "^\.ht">
> Order allow,deny
> Deny from all
> </Files>
>
> ..and tried this:
>
> <Files "*.svn*">
> Order allow,deny
> Deny from all
> </Files>
>
> ..but it didn't seem to work.
>
> Any ideas?

Yeah, you didn't copy it as instructed. :-P

<Files ~ "^\.svn">
     Order allow,deny
     Deny from all
</Files>

But that may not work anyway since .svn is a folder, not a file.

Something like this should work, which should match anything with
"/.svn" in it:

<Location ~ "/\.svn">
     Order allow,deny
     Deny from all
</Location>

-Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Oct 30 19:33:13 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.