Support both http and https at the same time.