Revolyssup commented on issue #9556: URL: https://github.com/apache/apisix/issues/9556#issuecomment-1567737932
> What is the difference between ctx.var.uri = uri and ngx.req.set_uri (uri)? @Revolyssup ctx is just context passed by apisix to plugins to pass data internally among different phases of a request. Setting it does not have any effect on actual URI. You can think of it as just variable holder. So setting ctx.var.uri=uri wil just set that variable for this request whereas ngx.req.set_uri calls into openresty ngx API to actually set the request URI. -- 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]
