Trouble with $uri in subrequest

ThomasLohner nginx-forum at
Wed Jul 17 20:51:41 UTC 2013

Hi there,

i'm having trouble getting the request_uri via lua in a subrequest.

ngx.var.uri will always return the uri of the parent request whereas
something like ngx.req.get_uri_args will return the correct args for the

any ideas on how to get the subrequets uri? or am i missing something here?

i'm using 1.4.1, thanks in advance


Posted at Nginx Forum:,240968,240968#msg-240968

More information about the nginx mailing list