On Thu, 26 Sep 2002, Dirk-Willem van Gulik wrote:
>
> In the department of scratching old itches - any strong objections to me
> adding the following patch which allows one to do things like
>
> # httpd.conf
> ServerRoot ${HOME}/apache
> Port ${PORT:=80}
> ErrorDocument 500 "Please contact ${CUSTOMER}
>
> and then
>
> [EMAIL PROTECTED] PORT=1234 ./apachectl start
>
> as few, if any, people use ${FOO} constructs in their configuration files
> today - the change is rather harmless.
>
> But I've found this useful (since 1.3.9 :-).
>
> Objections ?
Just the one that Dean has been harping on for years. The config file is
not a language, nor should it be. If you want things like macro
substitution or env variable substitution, then use a pre-processor. The
web server shouldn't have to worry about stuff like this.
Ryan
_______________________________________________________________________________
Ryan Bloom [EMAIL PROTECTED]
550 Jean St
Oakland CA 94610
-------------------------------------------------------------------------------