yangtian9999 edited a comment on issue #4851:
URL: https://github.com/apache/apisix/issues/4851#issuecomment-902312291


   Hi, @tokers 
   
   Just ignore /system/list.
   
   xxxx.xxxxxx-xxxxx.xxxxxxx.com only have /aaa interface. 
   
   
   
   curl "http://127.0.0.1:9080/apisix/admin/upstreams/1"; -H "X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '
   {
   "type": "roundrobin",
   "nodes": {
   "xxxx.xxxxxx-xxxxx.xxxxxxx.com:80": 1
   }
   }'
   
   curl "http://127.0.0.1:9080/apisix/admin/routes/1"; -H "X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '
   {
   "uri": "/aaa",
   "host": "xxxx.xxxxxx-xxxxx.xxxxxxx.com",
   "upstream_id": "1"
   }'
   
   curl "http://127.0.0.1:9080/apisix/admin/routes/1"; -H "X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '
   {
   "uri": "/aaa",
   "plugins": {
   "proxy-rewrite": {
   "regex_uri": ["^/aaa", "/aaa"]
   }
   },
   "upstream_id": "1"
   }'
   
   
   Finally, curl -I http://127.0.0.1:9080/aaa
   , we got
   
   HTTP/1.1 404 Not Found
   Content-Type: text/plain; charset=utf-8
   Content-Length: 19
   Connection: keep-alive
   Vary: Accept-Encoding
   X-Content-Type-Options: nosniff
   Date: Thu, 19 Aug 2021 02:24:20 GMT
   Server: APISIX/2.8
   
   
   
   
   
    


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


Reply via email to