Welcome! Log In Create A New Profile

Advanced

Re: rewrite save original url

October 13, 2010 02:00PM
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
[code]
set $cleanuri $uri;
[/code]
which in turn i pass to the proxy via headers
[code]
proxy_set_header X-Rewrite-FullURI $request_uri;
proxy_set_header X-Rewrite-CleanURI $cleanuri;
[/code]

p.s: all my content rewrites are using "last";
Subject Author Posted

rewrite save original url

Arthur Blake September 21, 2010 03:26PM

Re: rewrite save original url

tqvn2004 September 21, 2010 04:13PM

Re: rewrite save original url

Maxim Dounin September 21, 2010 04:28PM

Re: rewrite save original url

Arthur Blake September 21, 2010 08:38PM

Re: rewrite save original url

pandy October 13, 2010 01:29PM

Re: rewrite save original url

pandy October 13, 2010 02:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 128
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready