tokers commented on a change in pull request #4003: URL: https://github.com/apache/apisix/pull/4003#discussion_r609230127
########## File path: docs/en/latest/FAQ.md ########## @@ -392,9 +392,33 @@ HTTP/1.1 200 OK ... # The uri match failed -curl http://127.0.0.1:9080/12ab -i +$ curl http://127.0.0.1:9080/12ab -i HTTP/1.1 404 Not Found ... ``` In route, we can achieve more condition matching by combining `uri` with `vars` field. For more details of using `vars`, please refer to [lua-resty-expr](https://github.com/api7/lua-resty-expr). + +## Does the upstream node support configuring the `FQDN`(Fully Qualified Domain Name) address + +This is supported. Here is an example where the `FQDN` is `localhost.localdomain.com`: + +```shell +curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' +{ + "uri": "/hello", + "upstream": { + "type": "roundrobin", + "nodes": { + "localhost.localdomain.com:1980": 1 Review comment: Use a FQDN of Kubernetes Service is more vivid. ########## File path: docs/en/latest/FAQ.md ########## @@ -392,9 +392,33 @@ HTTP/1.1 200 OK ... # The uri match failed -curl http://127.0.0.1:9080/12ab -i +$ curl http://127.0.0.1:9080/12ab -i HTTP/1.1 404 Not Found ... ``` In route, we can achieve more condition matching by combining `uri` with `vars` field. For more details of using `vars`, please refer to [lua-resty-expr](https://github.com/api7/lua-resty-expr). + +## Does the upstream node support configuring the `FQDN`(Fully Qualified Domain Name) address Review comment: You may add a hyperlink about `FQDN`. -- 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: [email protected]
