spacewander commented on issue #8310:
URL: https://github.com/apache/apisix/issues/8310#issuecomment-1311276786

   The `ctx.var.host` will access the $host variable.
   
   > $host
       in this order of precedence: host name from the request line, or host 
name from the “Host” request header field, or the server name matching a request
   
   http://nginx.org/en/docs/http/ngx_http_core_module.html#var_host
   
   It is documented that $host only contains the "host name" from the “Host” 
request header field.
   
   While `ctx.var.http_host` is equal to the “Host” request header.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to