chyoong opened a new issue, #8290:
URL: https://github.com/apache/apisix/issues/8290

   ### Description
   
   I want to implement, when matched to cookie_env=a, reverse proxy to the 
Internet instead of upstream
   ```
   if ($cookie_env = "a") {
       proxy_pass https://$host;
   }
   
   if ($cookie_env = "b") {
       proxy_pass http://nodes;
   }
   ```
   
   This is my traffic-split configuration information, it does not take effect, 
still access to upstream_id
   ```
   {
     "name": "test",
     "upstream_id": "427820922649445065",
     "plugins": {
       "traffic-split": {
         "disable": false,
         "rules": [
           {
             "match": [
               {
                 "vars": [
                   [
                     "cookie_env",
                     "==",
                     "a"
                   ]
                 ]
               }
             ],
             "weighted_upstreams": [
               {}
             ]
           }
         ]
       }
     }
   }
   ```
   
   ### Environment
   
   APISIX version (run apisix version): apache/apisix:2.99.0-debian
   APISIX Dashboard version, if relevant: apache/apisix-dashboard:2.13-alpine


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