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

Re: Browsing Document roots with svn directories:

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-03-11 16:46:50 CET

On 10.03.2005, at 14:07, Reinhard Brandstaedter wrote:

> I'm wondering how you can enable a Web-browseable a SVNParentDir that
> lists all repositories (directory listing) that are contained in the
> ParentDir = Document root, so that only when clicking on the directory
> the DAV svn section <Location> is used.
>
> If I have a URL http://repos.domain.com and a apache configuration:
>
> ServerName stiwaprojects-repos.ams.stiwa.com
> ServerAlias stiwaprojects-repos
> DocumentRoot /home/subversion/projects
> <Location />
> Option +Indexes
> DAV svn
> SVNParentPath "/home/subversion/projects"
> Include conf/subversion/authenticate.conf
>
> require valid user
>
> AuthzSVNAccessFile conf/subversion/acl/projects-vhost-policy.conf
> </Location>
>
> How can one generate a directory listing of the Document root and not
> invoking the svn hanlder when browsing to http://repos.domain.com, so
> that all subdirectoris in /home/subversion/projects are listed and the
> svn handler is only used when acessing one of these directories?

I haven't tried it, but perhaps this would work:

AliasMatch ^/$ /path/to/your/repo/listing/script.php

So anyone accessing "/" would get the PHP (or whatever) script, which
you could write to output a list of repositories, and any other URL
would get the SVN handler.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 11 16:49:24 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.