Welcome! Log In Create A New Profile

Advanced

Re: rewrite last using variable

Ingo Schmidt
October 28, 2013 04:38AM
Hi!

> I believe it is intended to be "no", for internal rewrites at least.
Hmm, any reason why it might be intended?
Also, it would be nice if the docs could mention this, because I find it
unintuitive, if rewrite behaves differently depending on the rewrite type.

> You can do something like set $var "/url"; set $vararg "par=val";
> rewrite ^ $var?$vararg last;
Well, in my case that is exactly what I am trying to avoid, because my
variable is set in a map and I would have to create two maps then, one
with the URLs, the other with arguments.
And, as you already pointed out, sometimes the argument is optional.

Hmm, but it looks like this is my only option right now.
Anyway, thanks for your answer!

Cheers, Ingo =;->

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

rewrite last using variable

Ingo Schmidt October 27, 2013 08:58PM

Re: rewrite last using variable

Francis Daly October 28, 2013 04:10AM

Re: rewrite last using variable

Ingo Schmidt October 28, 2013 04:38AM

Re: rewrite last using variable

Francis Daly October 28, 2013 05:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
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