httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject Re: [PATCH] add simple ${ENV} substitution during config file read
Date Thu, 26 Sep 2002 14:52:22 GMT
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
> 
> 	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 ?

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                        	rbb@apache.org
550 Jean St
Oakland CA 94610
-------------------------------------------------------------------------------


Mime
View raw message