Baoyuantop commented on code in PR #6929: URL: https://github.com/apache/apisix/pull/6929#discussion_r860528068
########## docs/en/latest/getting-started.md: ########## @@ -202,25 +221,25 @@ curl "http://127.0.0.1:9080/apisix/admin/routes/1" -H "X-API-KEY: edd1c9f034335f }' ``` -This configuration means that it will forward all matching inbound requests to the upstream service (`httpbin.org:80`) if they meet these specified criterion. +This configuration means that it will forward all matching inbound requests to the Upstream service (`httpbin.org:80`) if they meet these specified criterion: - The HTTP method of the request is `GET`. - The request header contains the `host` field, and its value is `example.com`. - The request path matches `/anything/*`. `*` means any sub path. For example `/anything/foo?arg=10`. -Now that the Route has been created, we can access the Upstream service from the address exposed by Apache APISIX. +With the Route has created, we can access the Upstream service from the address exposed by APISIX: ```bash curl -i -X GET "http://127.0.0.1:9080/anything/foo?arg=10" -H "Host: example.com" ``` -This request will be forwarded to `http://httpbin.org:80/anything/foo?arg=10` by Apache APISIX. +This request will be forwarded to `http://httpbin.org:80/anything/foo?arg=10` by APISIX. Review Comment: Hi @navendu-pottekkat, I still can't get the correct response in this step. After adjusting the configuration information the correct return is obtained: ``` curl "http://127.0.0.1:9080/apisix/admin/routes/1" -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d ' { "methods": ["GET"], "host": "example.com", "uri": "/anything/*", "upstream": { "type": "round-robin", "pass_host": "node", "nodes": { "httpbin.org:80": 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
