httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: [PATCH] add simple ${ENV} substitution during config file read
Date Thu, 26 Sep 2002 01:29:54 GMT
* 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
> 
>      CUSTOMER=fred@foo.com 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 ?

I'm note sure, but I'd guess this may cause conflicts with mod_rewrite.
Otherwise...hmm, the feature probably leads to some weird effects, if
you forget to set or to remove some env variables... 

Perhaps one should turn it on explicitely with a command line parameter?

nd
-- 
s;.*;aaaaaoaaaoaaaaooooaaoaaaomaaaa:a:alataa:aaoat:a:a:a
maoaa:a:laoata:a:oia:a:o:a:m:a:o:alaoooat:aaool:aaoaa
matooololaaatoto:aaa:o:a:o:m;;s:\s:\::g;y;mailto:;
\40\51/\134\137|ndparker <nd@perlig.de>;;print;

Mime
View raw message