supporting https and https together