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:Valentin V. Bartenev (ne@vbart.ru)
Date:Mar 8, 2012 3:46:08 am
List:ru.sysoev.nginx

On Thursday 08 March 2012 10:07:35 shivnamha wrote:

Hi Alexandr Thanks Alexander.But I didnt get u completly. I tried by adding a 'fastcgi_param HTTPS on;' but this variable is getting set for http request as well for https request. But i need to set for https request. Can u please elaborate ur statement so that i can easily understand it.

http://nginx.org/en/docs/http/ngx_http_core_module.html#variables

fastcgi_param HTTPS $https if_not_empty; # for NGINX >= 1.1.11

For NGINX < 1.1.11:

map $scheme $https_on { default ''; https on; }

fastcgi_param HTTPS $https_on;

http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_param http://wiki.nginx.org/HttpMapModule