Hi,<div><br></div><div>In the docs of $host at <a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#variables">http://nginx.org/en/docs/http/ngx_http_core_module.html#variables</a>, it says:</div><div><br></div>
<div><div>$host</div><div>“Host” request header field, or the server name matching a request if this field is not present</div><div><br></div><div>It's not right with the host header like: <a href="http://www.example.com:1234">www.example.com:1234</a>.  The $host variable always strips the port.</div>
<div><br></div>-- <br>Weibin Yao<br>Developer @ Server Platform Team of Taobao<br>
</div>