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/11/16 06:32:42 UTC

[GitHub] [apisix] lishaoshu1240 edited a comment on issue #5526: "Route" transe function consult: can't transe "/*" to the upstream

lishaoshu1240 edited a comment on issue #5526:
URL: https://github.com/apache/apisix/issues/5526#issuecomment-969912082


   curl  http://apisix.zaitugongda.com:9080/apisix/admin/routes
    {
       "action": "get",
       "count": 2,
       "node": {
           "key": "/apisix/routes",
           "nodes": [
               {
                   "modifiedIndex": 3652,
                   "createdIndex": 269,
                   "key": "/apisix/routes/2",
                   "value": {
                       "methods": [
                           "GET"
                       ],
                       "priority": 0,
                       "update_time": 1637043992,
                       "host": "web.zaitugongda.com",
                       "id": "2",
                       "uri": "/*",
                       "upstream": {
                           "scheme": "http",
                           "hash_on": "vars",
                           "pass_host": "pass",
                           "nodes": {
                               "web.zaitugongda.com:9081": 1
                           },
                           "type": "roundrobin"
                       },
                       "status": 1,
                       "create_time": 1636777744
                   }
               }
           ],
           "dir": true
       }
   }
   
   
   and test:
   
   stefan@mac iterm % curl http://web.zaitugongda.com:9080/get
   <html>
   <head><title>502 Bad Gateway</title></head>
   <body>
   <center><h1>502 Bad Gateway</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>


-- 
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: notifications-unsubscribe@apisix.apache.org

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