Trouble with $uri in subrequest

ThomasLohner nginx-forum at nginx.us
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
subrequest.

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

i'm using 1.4.1, thanks in advance

Thomas

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,240968,240968#msg-240968



More information about the nginx mailing list