Allow for both http and https connections