Re: dynamic configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/18/07, Jason Keltz <jas@xxxxxxxxxxxx> wrote:

I'm wondering whether Apache allows me to have a dynamic Local directive
where I could do something like this:

<Location /repos/*>
    .
    SVNParentPath /local/subversion/repos/$1
    .
    AuthUserFile /local/suversion/auth/$1/svnpasswd
    .
    .
    .
    AuthzSVNAccessFile /local/subversion/auth/$1/authz
    .
    .
</Location>

If Apache lets me do this, I don't need a Location directive for EACH
repository.

The way I would do this is by using mod_perl. Then you can use perl in
your apache config, and use this to iterate over a set of dirs, and
add location blocks to your config.

Krist

--
krist.vanbesien@xxxxxxxxx
Bremgarten b. Bern, Switzerland
--
"...what you don't realize is that in the future Google WILL reach
sentience, will [have had] invent[ed] a time machine, and will [have
had] travel[ed] back in time to prevent Bill Gates... only to become
Bill Gates by accident because of a search engine optimization
miscalculation." (Comment on the Dilbert Blog)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux