xianshun163 opened a new issue #6352:
URL: https://github.com/apache/apisix/issues/6352


   ### Issue description
   
   Dear all,   I   use the proxy-rewrite  to change the uri,   then  in the 
balancer.lua,  if  all the  backupend server is avalable,  I want to  forwards 
the request to other cluster ,  so  I want to set the uri to the original,  but 
 I can not do it. 
   I try it like this : ctx.var.upstream_uri = ctx.old_upstream_uri
   but it not work now,  It still forwards the modified URI, not the original.
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):1.11.0
   - OS (cmd: `uname -a`):center os 7
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: 
depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


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