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 2021/05/12 01:43:27 UTC

[GitHub] [apisix] Firstsawyou edited a comment on issue #4221: request help: 路由设置失败,希望通过访问apisix最终路由到10.101.42.163:8082/user/hello这个地址

Firstsawyou edited a comment on issue #4221:
URL: https://github.com/apache/apisix/issues/4221#issuecomment-839368919


   You can directly create a route for proxy access like this:
   
   ```shell
   curl http://127.0.0.1:9280/apisix/admin/routes/1  -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/user/hello",    
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "10.101.42.163:8082": 1
           }
       }
   }'
   ```
   ```shell
   curl http://10.255.249.3:9080/user/hello
   ```


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