$https with SSL proxy

Antonio P.P. Almeida appa at perusio.net
Mon Apr 2 08:35:35 UTC 2012

>> The problem is that all applications rely on this "https" header,
>> changing the code of all applications makes no sense to me.
> AFAIK it's not a header but rather a parameter that is passed through CGI
> and in PHP, for example, you recover via $_SERVER['HTTPS']. This has
> nothing to do with headers. Of course you can set a header based on it.
> X-Forwarded-Proto $https;
> or
> X-Forwarded-Proto $my_https;

Oops. My bad. I meant:

X-Forwarded-Proto $scheme;


More information about the nginx mailing list