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

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

-Travis

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