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

Re: A few more questions

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-02-25 23:30:12 CET

On Mon, Feb 25, 2002 at 03:54:14PM -0500, Ben Collins wrote:
> On Mon, Feb 25, 2002 at 03:39:18PM -0500, Tim Moloney wrote:
>...
> > Please tell me if the following is correct. For each module that is in
> > Subversion, I have to have a separate repository (created with 'svnadmin
> > create') and a separate <Location> block in the Apache httpd.conf file.
> > Otherwise, all modules would have the same revision number.
>
> I believe so, yes.

Yes, that is correct. They would share a revision number, log message
history, etc.

> > Question 2
> >
> > Is there a way to "chroot" inside a Subversion repository? For example,
> > if I had create a repository with
> >
> > svnadmin create /var/www/html
> > svn mkdir file:/var/www/html/trunk
> > svn mkdir file:/var/www/html/tags
> > svn mkdir file:/var/www/html/branches
> >
> > could I then put the following in httpd.conf?
> >
> > <Location />
> > DAV svn
> > SVNPath /var/www/html/trunk
> > </Location>
>
> You could, but they would see a listing of the files in the repo, and
> not webpages like you want.

No. The SVNPath directive must point to a repository. It cannot point
"further into" that repository.

Using internal redirects (and/or mod_rewrite), you could probably redirect
the root ("/") to "/trunk".

> > <Location /maint>
> > DAV svn
> > SVNPath /var/www/html
> > </Location>
>
> This part would work, but again would produce file listings, as opposed
> to seeing "index.html".

Correct -- we don't have the right mechanisms in there quite yet to support
mod_dir's fetching of index.html.

Note that you *cannot* enable SSI or PHP on the locations that are backed by
Subversion. Instead, you must author the SVN content from one location, and
server it [enabling SSI and PHP] from another location.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:09 2006

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.