mscb402 commented on issue #9004:
URL: https://github.com/apache/apisix/issues/9004#issuecomment-1457335263

   Or you can use `_meta` in plugin 
https://apisix.apache.org/docs/apisix/terminology/plugin/#plugin-common-configuration
   Like 
   ```
   {
       "methods": ["GET"],
       "uri": "/*",
       "host": "a.app.m.com"
       "plugins": {
           "proxy-rewrite": {
               "_meta":{
                       "filter":["host", "==", "a.app.m.com"]
               }
               "uri": "/a/prod",
           },
           "proxy-rewrite": {
               "_meta":{
                       "filter":["host", "==", "b.app.m.com"]
               }
               "uri": "/b/prod",
           }
       },
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "127.0.0.1:80": 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to