starting with version 1.1.11 the $https variable is activated by
default. This is good as many applications rely on them because apache
is using this header.
However, now i cannot set or map this variable (nginx: [emerg] the
duplicate “https” variable). We have a load balancer in front of the web
servers which does all SSL traffic. The nginx servers can only differ
between http and https via a header sent by the load balancer, the nginx
port is the same. That hasn’t been a problem in < 1.1.11. Many plugins,
codings in applications use this $https header so it would be nice if i
could assign it manually.
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.
Your right, setting it for fastcgi as param works fine. I had a problem
in the past setting variables in the fastcgi_params, they’ve just been
ignored. This seems to be gone.
Then i have to rewrite the nginx internal logic of my
substitions/mappings based on this variable.
I still think allowing a manual override of this variable should be
allowed. If any other plugin relies on this header users with SSL
Accelerators will definately have a problem.
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.