Welcome! Log In Create A New Profile

Advanced

RE: $request_uri without args

Richard Kearsley
September 14, 2011 12:34PM
Many thanks, this fixed the problem (or got around it at least :) - so not sure where the bug is but I suspect it's the mixture of ?3456 and ?val=3456 in the query string after the lua pass to backend (I wasn't reading "host" at backend properly, hence 404)


> local uri = string.gsub(ngx.var.request_uri, "?.*", "")
> local res = ngx.location.capture("/proxy" .. uri,
> { args =
> { country = ngx.var.geoip_country_code, host = ngx.var.host }
> } )

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

$request_uri without args

Richard Kearsley September 14, 2011 09:52AM

Re: $request_uri without args

agentzh September 14, 2011 10:16AM

RE: $request_uri without args

Richard Kearsley September 14, 2011 10:32AM

Re: $request_uri without args

agentzh September 14, 2011 11:40AM

RE: $request_uri without args

Richard Kearsley September 14, 2011 12:34PM

Re: $request_uri without args

agentzh September 14, 2011 08:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 219
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready