endison1986 commented on issue #5579:
URL: https://github.com/apache/apisix/issues/5579#issuecomment-976335004


   > Perhaps you can refer to the implementation of the `proxy-rewrite` plugin. 
The request context of apisix is private. If you need to rewrite the forwarded 
URI in the execute phase, you can use `ctx.var.upstream_uri = xxxx`
   
   thx reply, I also notice `proxy-rewrite` plugin,and try to set up and apply 
it.
   I create a route and set upstream `127.0.0.1:8080` that is not real, and set 
up `proxy-rewrite`, but I get an error message, `connect() failed (111: 
Connection refused) while connecting to upstream`
   Maybe, I don't understand where should the plugin be used, I will try it 
again, 3q.


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