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

Re: SVN working copies, websites, .svn and .htaccess

From: Jani Averbach <jaa_at_jaa.iki.fi>
Date: 2005-03-01 00:27:34 CET

On 2005-02-28 17:05-0600, Travis P wrote:
>
> On Feb 28, 2005, at 2:54 PM, Jani Averbach wrote:
>
> >I need some help with our .htaccess configuration:
> >
> >Is there any way to put to the top most .htaccess file a rule that
> >will block all sub-tree .svn directories to be served by Apache
> >HTTPD?
> >
> >There is a FAQ [1] about how you could do this with httpd.conf, but in
> >our case we don't have access to the server's main configuration, so
> >we have to live (and die) with .htaccess files.
>
> This appears to work well enough for me:
> _______
> SetEnvIfNoCase Request_URI "\.svn" ban
>
> Deny from env=ban
> ________

Thanks!

I found that following will also do the trick:

   RewriteEngine On
   RewriteRule ^(.*/)*\.svn/ / [F,L]

BR, Jani

-- 
Jani Averbach
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 1 00:30:33 2005

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.