press enter twice, you will get nginx return 200 OK
Variable $host contains normalized host name, and all of the above
forms are normalized into ‘www.yanbao360.com’ in $host variable as
they are equivalent.
Case-insensitive matching of hostnames is explicitly required by
RFC2616[1]. And fully qualified domain name may contain trailing
“.” if it is necessary to distinguish between the complete domain
name and some local domain[2].
If you want to check Host header exactly as sent by client - you
may use $http_host variable instead. There are some caveats
though:
Redirection to equivalent URL may cause problems, as it’s
basically identical to infinite redirection loop.
You’re likely to see some browsers sending port in Host header
(“www.yanbao360.com:80”) even if it’s default one.
Some requests may use absolute URL in request line, then Host
header must be ignored and host portion of URL used instead
(though this shouldn’t happen with HTTP/1.1 clients).