httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bgs <...@bgs.hu>
Subject Re: [users@httpd] Dynamic config parameters
Date Thu, 06 Apr 2006 14:03:13 GMT

Just for the records: I had to choose the preprocessor version.

Bgs wrote:
>>> <VirtualHost %IP>
>>>  ServerName domain.com
>>>  ServerAlias www.domain.com web%NUM.domain.com
>>> ...
>>> </VirtualHost>
>>>
>>> I hope this clarifies. I will skim through the addon link you sent me
>>> though.
>>
>>
>>
>> If I were to do this, I would use a simple config pre-processor to
>> substitute out the variables.  That is a robust, simple, and
>> easy-to-impliment solution.
>>
>> I believe that you can actually use env-variables in httpd.conf using
>> something like ${env-variable}; but this is undocumented and perhaps
>> fragile.
> 
> 
> 
> That would make sense. Or using some apache internal variable would suit 
> as well. In my case there are only two distinct variables for each site, 
> that should be used in VirtualHost, ServerAlias and sometimes in the 
> logs definitions.
> 
> I'd like to keep config preprocessors as a last resort solution...
> 
> 
> Bye
> Bgs

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message