[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: Travis P <svn_at_castle.fastmail.fm>
Date: 2005-03-01 00:05:43 CET

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
> 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

(Yeah, it might be a little broader than strictly necessary, but I'm
not bothered by the corner-cases.)


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:08:26 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.