halfcrazy commented on pull request #2079: URL: https://github.com/apache/apisix/pull/2079#issuecomment-676847163
> > proxy_set_header Host $host may lose port info, use http_host instead. > > And is this PR anything with `proxy_set_header`? Since we use proxy_set_header to set the Host field in header for upstream server. Nginx $host variable doesn't contain a port, as rfc2616 a request to ports besides 80, 443 should always include a port in the host field. [1]https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
