> -----Original Message-----
> From: Jason Keltz [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, January 18, 2007 6:18 PM
> To: [email protected]
> Subject: [EMAIL PROTECTED] dynamic configuration
> 
> Hi,
> 
> I'm wondering whether Apache 2.2 supports dynamic 
> configuration in the 
> configuration file. 

Not directly. However, there are a few ways to achieve this:

- use the 3rd party module, mod_macro (http://modules.apache.org/)
- make a template config and pre-process it with sed, m4 etc.
- put in a perl (or similar) script at the start of apachectl to
generate config on the fly.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

 I have this "Location" directive in my 
> Apache 2.2 
> configuration file that is used for Subversion:
> 
> <Location /repos>
>          DAV svn
>          SVNParentPath /local/subversion/repos
> 
>          AuthType Basic
>          AuthBasicProvider anon file pam
>          AuthName "Subversion Repository"
>          AuthUserFile /local/subversion/svnpasswd
> 
>          Anonymous_NoUserID off
>          Anonymous_MustGiveEmail off
>          Anonymous_VerifyEmail off
>          Anonymous_LogEmail off
>          Anonymous anonymous
> 
>          AuthzSVNAccessFile /cs/local/share/subversion/authz/silver
> 
>          Require valid-user
> </Location>
> 
> 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.
> 
> Any idea?
> 
> Jason.
> 
> ---------------------------------------------------------------------
> 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: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to