[NGINX-HIGH PRIO FASTCGI HTTPS BUG] The bindings don't tell the CGI process that it's running under HTTPS

Add the following:

fastcgi_param HTTPS $https;

The $https variable is on in case of HTTPS, otherwise off.

If this isn't passed to the CGI process, then scripts will think that they are running under HTTP, and try to redirect you from HTTPS to HTTP, or vice versa, and all kinds of other issues such as infinite redirect loops as it keeps trying to send you to the https site even though you are already on it.

Status: 
Closed (fixed)

Comments

Thanks .. I'll add that.

Automatically closed -- issue fixed for 2 weeks with no activity.