nic-6443 commented on issue #6658:
URL: https://github.com/apache/apisix/issues/6658#issuecomment-1072959711


   > > @lizj3624 Always check out the docs firstly :) 
https://apisix.apache.org/docs/apisix/next/admin-api/#route
   > 
   > please give an example,thank you very much
   
   You can use `vars` matcher with `server_addr` variable from nginx to archive 
your demand. Like below:
   ```
   {
       "host": "test.my.com",
       "uri": "/*",
       "upstream": {...},
       "vars": [["server_addr", "==", "1.1.1.1"]],
       "name": "test.my.com"
   }
   ```


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