[edit] env

Syntax: env variable [= value ]
Default: TZ
Context: main
Reference: env


The instruction allows to limit a set of variables of environment, to change it values or to create new variables for following cases:

If variable TZ is not described obviously it is always inherited and is always accessible to the embedded Perl module.

Example of use:

env  MALLOC_OPTIONS;
env  PERL5LIB=/data/site/modules;
env  OPENSSL_ALLOW_PROXY_CERTS=1;

By default, nginx wipes all its environment variables except TZ variable.


Module: CoreModule