Welcome! Log In Create A New Profile

Advanced

Re: Want to access UNIX environment variable

Jonathan Matthews
February 27, 2013 05:52AM
On 27 February 2013 06:49, amodpandey <nginx-forum@nginx.us> 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
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Want to access UNIX environment variable

amodpandey February 27, 2013 01:49AM

Re: Want to access UNIX environment variable

Jonathan Matthews February 27, 2013 05:52AM

Re: Want to access UNIX environment variable

amodpandey February 28, 2013 01:04AM

Re: Want to access UNIX environment variable

kalpesh.patel@glgroup.com March 11, 2013 05:39PM

Re: Want to access UNIX environment variable

kalpesh.patel@glgroup.com March 11, 2013 05:41PM

Re: Want to access UNIX environment variable

Zachary Stern February 28, 2013 01:16AM

Re: Want to access UNIX environment variable

amodpandey February 28, 2013 01:22AM

Re: Want to access UNIX environment variable

E. Westbrook March 07, 2013 04:18AM

Re: Want to access UNIX environment variable

Jonathan Matthews February 28, 2013 05:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 237
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready