Welcome! Log In Create A New Profile

Advanced

Re: Regarding setting ENV variable

Valentin V. Bartenev
March 08, 2012 06:48AM
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

wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Regarding setting ENV variable

shivnamha March 07, 2012 12:07PM

Re: Regarding setting ENV variable

Alexandr Gomoliako March 07, 2012 12:14PM

Re: Regarding setting ENV variable

shivnamha March 08, 2012 01:07AM

Re: Regarding setting ENV variable

Valentin V. Bartenev March 08, 2012 06:48AM

Re: Regarding setting ENV variable

shivnamha March 08, 2012 12:19PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 265
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready