3 messages in ru.sysoev.nginxabout env directive
FromSent OnAttachments
Manlio PerilloNov 26, 2007 8:49 am 
Igor SysoevNov 26, 2007 9:02 am 
Manlio PerilloNov 26, 2007 10:23 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:about env directiveActions...
From:Manlio Perillo (manl@public.gmane.org)
Date:Nov 26, 2007 8:49:05 am
List:ru.sysoev.nginx

Hi.

I want to enable the definition of custom environment variables in mod_wsgi.

After a quick search in Nginx sources I have found the env directive and the ngx_set_environment function.

Unfortunately the documentation is in Russian only http://sysoev.ru/nginx/docs/ngx_core_module.html#env.

I have found some problems with this directive. - It seems that it is not possible to inherit enviroment variables from the "system"; only variables defined with env directive are added to os environment - The syntax should be env VAR|VAR=VALUE, but, as an example, env MALLOC_OPTIONS; does not put MALLOC_OPTIONS in the environment.