add https section
support two passes of substitutions for http_https as variables are repeated