DokiDoki1103 commented on issue #10531: URL: https://github.com/apache/apisix/issues/10531#issuecomment-1833351387
> Sorry, I may not have expressed myself clearly. The port appearing in `http_host` and `vars.server_port` are sometimes not equivalent. Take the following curl command as an example. `http_host` is 10.70.2.23:9000, but `server_port` will be 8000. `curl "http://10.70.2.23:8000/api/test/1" -H 'host: 10.70.2.23:9000'` > > This situation may occur especially when there is a load balancer before apisix. Intuitively, one may feel that the port in the routing configuration needs to match the host in the http request header. That's why I thought the port on the host in the routing configuration may be confusing. But anyway, it doesn't appear to be harmful, and whoever configures the port on the host should know what to expect. If I want to access the HTTP service on a certain port, then your method is more effective, but if I want to match the port through Host, your method is not supported -- 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]
