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

Re: working copy is web-accessible, .svn/auth/* retrievable

From: Rafael Garcia-Suarez <rgarciasuarez_at_free.fr>
Date: 2003-01-07 17:38:42 CET

Thom May <thom@planetarytramp.net> wrote:
> * Thom May (thom@planetarytramp.net) wrote :
> > * Alexis Huxley (ahuxley@gmx.net) wrote :
> > > Hi
> > >
> > > A Subversion and/or Apache problem:
> > >
> > > I've got my homepage stored in Subversion; that is I run:
> > >
> > > svn co http://blah.blah/svn/homepage ~/public_html
> > >
> > > For various reasons I don't want to 'make install' my homepage to
> > > ~/public_html from somewhere else, and of course I don't want to
> > > remove the .svn's either.
> > >
> > AllowOverride All in httpd.conf; then:
> >
> > <DirectoryMatch ~ "^\.svn">
> > Order deny,allow
> > Deny from all
> > </DirectoryMatch>
> >
> > should do pretty much what you need in a .htaccess.
> close. it's not allowed in .htaccess, and you can lose the '~'

and the "^" (I think that DirectoryMatch matches against full filesystem
directories).

On the other hand, mod_rewrite can be used in .htaccess IIRC. (if the
site-wide config allows it.)

Other way to do this (might or might not work, have you only
static pages ?) : alias /~user/ to your svn repository,
and set svn:mime-type on your HTML pages / images accordingly. And
limit access to GET and HEAD methods.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jan 7 17:39:01 2003

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

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