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

RE: mod_authz_svn & MySQL db - possible contract

From: Jay Crouch <jay_at_thesafestream.com>
Date: 2006-09-20 23:40:59 CEST

Nik Clayton Wrote:

> There are two ways to do this. One is to write a script that
> interrogates your database and other datastores, and writes out a full
> Apache config file. When the config file is rewritten you tell Apache
> to re-read its config file.

> The more interesting approach is to use mod_perl, and then embed Perl in
> your Apache configuration file. This lets you write a much smaller
> config file, as you can use Perl's looping constructs.

Thanks Nik - but with 1000's to 10's of 1000's of repositories, isn't a
configuration file - or a looped file a bit clunky? - Wouldn't it have
serious performance issues?

I'm still thinking I need something akin to SVNParentPath;

I've been thinking about using a <LocationMatch> directive and a variable
SVNPath inside -- but does apache allow you to use the results of the regex
match as in the following example? ... note the use of $1

    <LocationMatch /repositories/u([^/])+/>
      Options All
      DAV svn
      SVNPath "/mnt/data/users/$1/repo"
      AuthzSVNAccessFile "/mnt/data/users/$1/.authsvn"
    </LocationMatch>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 20 23:41:22 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.