Handle http/https ports.