How to reference OS Environment Variales in nginx.conf

caoxingk nginx-forum at
Thu Sep 15 21:03:41 UTC 2011

Hi there,

After set a variable by `set $name value`, i can reference it like
but when i export a OS Environment Variale by `env name_from_env`, like said,
and i am sure the name_from_env is valid which defined form nginx's
parent process.

But, my friends, how to reference it ? 
$name_from_env or ${name_from_env} or %name_from_env% didn't work what
i've tried before.

Thanks a lot.

Posted at Nginx Forum:,215269,215269#msg-215269

More information about the nginx mailing list