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 2020/08/18 05:47:05 UTC

[GitHub] [apisix] zhuchengxing opened a new issue #2071: request help: What is hosts in route?

zhuchengxing opened a new issue #2071:
URL: https://github.com/apache/apisix/issues/2071


   ### Issue description
   excuse me,What is hosts in route?
   ![image](https://user-images.githubusercontent.com/29362652/90474831-c5324880-e158-11ea-89f9-c2681c6bb014.png)
   In the new version of Dashboard, this is required, but I'm not sure what this is for. Although it's explained in the ADMIN Api, it still makes me confused, right? Can you explain that again? thank you
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):1.4
   * OS:centos7
   


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

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



[GitHub] [apisix] membphis closed issue #2071: request help: What is hosts in route?

Posted by GitBox <gi...@apache.org>.
membphis closed issue #2071:
URL: https://github.com/apache/apisix/issues/2071


   


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

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



[GitHub] [apisix] membphis commented on issue #2071: request help: What is hosts in route?

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2071:
URL: https://github.com/apache/apisix/issues/2071#issuecomment-675361027


   1. please update your APISIX to latest version 1.5
   2. the `域名` means the field which named `host`. it is the host of client request.
   
   ```
   # curl http://127.0.0.1:9080/hello -H "host: foo.com"
   
   in this case, the host is foo.com
   ```
   
   https://github.com/apache/apisix/blob/master/doc/admin-api.md#route
   
   ![image](https://user-images.githubusercontent.com/6814606/90494141-c2921c00-e175-11ea-9eb5-cc18b82809d8.png)
   
   
   


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

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