atom feed5 messages in ru.sysoev.nginxRe: Regarding setting ENV variable
FromSent OnAttachments
shivnamhaMar 7, 2012 9:06 am 
Alexandr GomoliakoMar 7, 2012 9:12 am 
shivnamhaMar 7, 2012 10:06 pm 
Valentin V. BartenevMar 8, 2012 3:46 am 
shivnamhaMar 8, 2012 9:18 am 
Subject:Re: Regarding setting ENV variable
From:Alexandr Gomoliako (zz@zzz.org.ua)
Date:Mar 7, 2012 9:12:50 am
List:ru.sysoev.nginx

On 3/7/12, shivnamha <ngin@nginx.us> wrote:

Hi Friends I want to set a env variable on nginx with perl whenever i am accessing site with https only. can anyone help how i can do this. I looked at post env variable in nginx.conf file it didnt help me.Is there any way that i can set environment variable using mod_perl.

Are you sure that's what you need? You can pass $https with fastcgi_param or access it with perl's variable method: $r->variable('https') and set $ENV{..} accordingly.