-Host request header field,
-or the server name matching a request if this field is not present
+in this order of precedence:
+host from the request line, or
+host from the Host request header field,
+or the server name matching a request
Most of the content is fine for me. Could you add a line like that the
variable $host exclude the port explicitly? I know the host should mean
the
server name, not include the port. It just confuses me when I use the
directive like this:
proxy_set_header Host $host;
But the port is missing. Maybe I shoud use the $http_host instead.
On Fri, Nov 30, 2012 at 06:05:42PM +0800, 姚伟斌 wrote:
Hi Ruslan,
Most of the content is fine for me. Could you add a line like that the
variable $host exclude the port explicitly? I know the host should mean the
server name, not include the port.
If I say about port stripping in case #2, should I say about
requestURI stripping to extract the “host” part? I’d like
to avoid detailing it too much, and in my opinion “host from
the …” fits both cases.
It just confuses me when I use the
directive like this:
proxy_set_header Host $host;
But the port is missing.
That is understood. The previous description was incorrect.
Thanks for noticing.