In our production environment the SSL is offloaded to the load balancer. This was done to reduce the CPU load on the servers.
For the most part this is perfectly fine, however, we now need the servers to be aware whether they are serving pages over SSL or not.
What is a good way of doing this, but keeping the SSL offload in place?