I am trying to set the _SERVER["HTTPS"] php variable to yes on my web servers.
Actually, https trafic come to stunnel which forward it to haproxy which forward it to my web servers running under nginx.
Trying to add this in haproxy.cfg:
reqidel ^HTTPS:
reqadd HTTPS:\ yes
But instead of clear HTTPS and add HTTPS to yes it adds a new variable:
_SERVER["HTTP_HTTPS"]
Any idea?
Regards,