Turns out https works correctly if the port is omitted