You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/23 09:38:09 UTC

[GitHub] [apisix] endison1986 commented on issue #5579: request help: a forward plugin for api gw

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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org