Omit double-slashes after the hostname in order not to confuse our ssl
proxy; also remove warning about unset index.