Added extra check for detecting https on load balanced servers