Thank you.
I am looking for an simpler ( direct ) approach. For now I have put a sed
script in my bounce nginx which does that.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236654,236706#msg-236706
___
nginx mailing list
nginx@nginx.org
ht
Let me put what I want to achieve.
Before that I want to know what is this 'env' global directive for?
I want to maintain a single set of configuration files for dev and prod. The
machines would have environment variable set ENV=dev or ENV=prod. Based on
the values of the ENV varibale I wanted to
Hi,
I have system where I have defined OS environment variable $ENV=prod or dev.
I want to access this variable inside my nginx configuration. Please help.
I have tried -g "env ENV" in command line. But how do I access it? $ENV does
not work?
Posted at Nginx Forum:
http://forum.nginx.org/read.p