Support HTTP_PORT in url