apisix icon indicating copy to clipboard operation
apisix copied to clipboard

request help: What is hosts in route?

Open zhuchengxing opened this issue 6 years ago • 1 comments

Issue description

excuse me,What is hosts in route? image 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

zhuchengxing avatar Aug 18 '20 05:08 zhuchengxing

  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

membphis avatar Aug 18 '20 09:08 membphis