MBH-298, when rewriting urls, use the scheme sent by the load balancer instead of our local scheme.