[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: Nik Clayton <nik_at_ngo.org.uk>
Date: 2006-09-20 23:05:24 CEST

Jay Crouch wrote:
> I can’t figure out how to do this with apache – obviously the SVN parent
> path declaration comes to mind – but in this case, the repositories
> don’t all exist in the same root folder – instead they are spit up into
> many subdirectories. We knew this could cause us problems before we
> implemented the structure – but had no choice.

If you're familiar with Perl, you could generate your Apache config file
progammatically.

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.

You can see an example of this approach here:

http://www.x-tend.be/~raskas/blog/2006/08/28/perl-script-inside-apache-configuration-svn-example/

Hope that helps,

N

---------------------------------------------------------------------
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:05:48 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.