reverse Squid does HTTPS for hidden apache, how does PHP know?
My public web server which serves HTTP and HTTPs is actually a squid server that serves content from an apache server on a private network. for the sake of HTTPS certificates, squid handles everything HTTPS and forwards both HTTP and HTTPs to the apache server using HTTP.
It is secure because the private network is not accessible by anyone.
Trouble is I don't know in PHP wether the user is using HTTP or HTTPS. Is there a setting on squid I can set to add a header to indicate that the user is connecting via HTTPS?