You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/24 01:52:30 UTC

[GitHub] [apisix] tiyorn edited a comment on issue #6430: request help: Why in the case of upstream multiple nodes, set pass_node = node, nodes can only use domain name, not ip directly, otherwise host will be set to 127.0.0.1:9080

tiyorn edited a comment on issue #6430:
URL: https://github.com/apache/apisix/issues/6430#issuecomment-1049414046


   > ented [13分钟前](#issuecomment-1049406864)
   
   
   
   > > When forwarding the request, the host header will be set to [http://127.0.0.1:9080,why?](http://127.0.0.1:9080%EF%BC%8Cwhy%EF%BC%9F)
   > > pass_host = node only support domain name scene?why can't just use ip directly?
   > 
   > When the value of `pass_host` is `node`, the HTTP Host header will set according to the domain/ip of this node.
   
   I know, but when multiple upstream addresses are set to ip instead of domain names, it will not take effect.
   
   upstream.nodes:
   ```
       "nodes": [
         {
           "host": "192.168.0.1",
           "port": 80,
           "weight": 1
         },
         {
           "host": "192.168.0.2",
           "port": 80,
           "weight": 1
         }
       ],
   
   ```


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org