shell environment variables in "include"-directive not working

Maxim Dounin mdounin at mdounin.ru
Fri May 14 16:56:50 MSD 2010


Hello!

On Fri, May 14, 2010 at 01:11:55PM +0200, Markus Grobelin wrote:

> On 05/13/2010 02:29 AM, Maxim Dounin wrote:
> 
> >nginx doesn't have syntax for expanding environment variables in
> >configuration file.
> Too bad... I thought it is a common thing for oos server software :(
> 
> Recently I built up a farm of several Tomcat & Apache httpd
> Instances. It's just the frontend part of the application. There is
> a business layer and backend, too. I wanted to migrate some http
> functionality stuff - delivering static media, cache some userphotos
> - to nginx. Think of multiple instances across multiple hosts (30
> and counting)  for all the stages (dev,qa, prelive,live) one want to
> have when deploy a big web-application.
> 
> It's at charming to unify system- and daemon-configuration via
> placeholders (environment variables). Convention over Configuration
> enables a system administrators live to be as stressless as possible
> ;)
> 
> Is there a plan to add this feature?

Not really.  But there are some well-known tools[1] which will do it 
for you easily enough.

[1] http://www.opengroup.org/onlinepubs/9699919799/utilities/sed.html

Maxim Dounin



More information about the nginx mailing list