I found a way. Never used "set" variables before... need to study nginx more :P Just before the rewrites i'm saving the original $uri to a variable set $cleanuri $uri; which in turn i pass to the proxy via headers proxy_set_header X-Rewrite-FullURI $request_uri; proxy_set_header X-Rewrite-CleanURI $cleanuri; p.s: all my content rewrites are using "last";by pandy - Nginx Mailing List - English
Is it possible to have only the original URL without the arguments? I know two ways but i rather use a ready made variable from nginx. PHP and rewrite with regex Thanks in advanceby pandy - Nginx Mailing List - English