added scheme and missing setting of headers to lua vhosts
added X-Forwarded-Port header to nginx proxies