Want to access UNIX environment variable
zs at enternewmedia.com
Thu Feb 28 06:14:20 UTC 2013
Have puppet generate the configuration based on that variable.
Snet form my moblie phoen. Please excues tpyos.
On Feb 28, 2013 1:05 AM, "amodpandey" <nginx-forum at nginx.us> wrote:
> 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.
> machines would have environment variable set ENV=dev or ENV=prod. Based on
> the values of the ENV varibale I wanted to pick my upstream conf, either
> upstream_dev.conf or upstream_prod.conf through 'include
> Please suggest an approach.
> Posted at Nginx Forum:
> nginx mailing list
> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx