1: Dual URL and https port fix
2: setup https
3: http_host var