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/04/02 07:21:55 UTC
[GitHub] [apisix] Firstsawyou commented on issue #3903: request help: Accessing ctx.var.upstream_uri in global rule causes failure of proxy-rewrite
Firstsawyou commented on issue #3903:
URL: https://github.com/apache/apisix/issues/3903#issuecomment-812377486
Hi, @zwjzxh520
@spacewander provides two solutions, you can refer to the following:
Method one: use `ngx.var` instead `ctx.var`, for example: `ngx.var.upstream_uri` . For detailed examples, you can refer to #3914
Method two: use a new way to cache ctx.var: #3915
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org