On 27 February 2013 06:49, amodpandey <[email protected]> wrote: > 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?
No, this isn't supported - both specifically what you tried, and the more general "envvars in config" concept. You'll have to find another way to achieve what you want. Jonathan -- Jonathan Matthews // Oxford, London, UK http://www.jpluscplusm.com/contact.html _______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
