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 2020/09/01 06:42:34 UTC

[GitHub] [apisix] xyz2b commented on issue #2128: request help: Can support multi-server config?

xyz2b commented on issue #2128:
URL: https://github.com/apache/apisix/issues/2128#issuecomment-684465914


   I use apisix admin api to configure, but apisix not listen in 8080 to receive requests, only have 9080 and 9443. Something wrong? 
   # curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
   {
       "uri": "/*",
       "hosts": ["www.foo.com"],
       "remote_addrs": ["10.107.97.24"],
       "methods": ["POST", "GET"],
       "vars": [
           ["server_port", "==", "8080"]
       ],
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "172.16.144.119:8081": 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.

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