Remove ssl header and add port to host