Re: Want to access UNIX environment variable

2013-02-27 Thread amodpandey
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

Re: Want to access UNIX environment variable

2013-02-27 Thread amodpandey
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

Want to access UNIX environment variable

2013-02-26 Thread amodpandey
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