Welcome! Log In Create A New Profile

Advanced

Trouble with $uri in subrequest

July 17, 2013 04:51PM
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
SubjectAuthorPosted

Trouble with $uri in subrequest

ThomasLohnerJuly 17, 2013 04:51PM

Re: Trouble with $uri in subrequest

Yichun Zhang (agentzh)July 17, 2013 07:22PM

Re: Trouble with $uri in subrequest

ThomasLohnerJuly 18, 2013 04:39AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 57
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready