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

Re: .htaccess in .svn

From: Toby Johnson <toby_at_etjohnson.us>
Date: 2004-08-31 17:35:20 CEST

Jon Riddle wrote:

>No, it's not part of my tree. My working copy is web accessible so that
>I can serve/view what I'm working on, but because it's a working copy,
>the .svn directories are also web accessible. That's bad, because if
>someone were to stumble upon my working copy from the web, they would
>have access to my code through .svn/text-base/mypage.svn-base.
>
>I can keep Apache from serving .svn by 1) adding a <Directory> directive
>to my httpd.conf file, which is a hassle and would require a restart
>every time I added a project or directory in a project, or 2) drop an
>.htaccess file in the .svn directory that keeps Apache from serving
>anything in the .svn folder or its children.
>
>I just want to know if svn is going to choke or hiccup or make
>irritating noises if it finds a .htaccess file in a .svn directory.
>
>
Why not use a <LocationMatch "\.svn"> directive in your Apache conf? The
problem with the approach you're trying to take is that you'd have to
create an .htaccess file every time you created a working copy, which
would quickly become a PITA.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 31 17:35:52 2004

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