Welcome! Log In Create A New Profile

Advanced

Re: Why doesn't Nginx rewrite directive support '@' named_location?

Maxim Dounin
March 18, 2014 11:10AM
Hello!

On Tue, Mar 18, 2014 at 10:52:06PM +0800, yzprofile wrote:

> Hi,
>
> I have a simple question:
>
> Why doesn't Nginx rewrite directive support '@' named_location?

Simple answer is:

Because rewrite directive is to rewrite request URI as per it's name,
while redirecting a request to a named location preserves request
URI (and that's the sole purpose of named locations).

More complex one is:

Support of named locations in rewrites was discussed more than
once, and yet we've failed to convince Igor that it will be a
good change.

--
Maxim Dounin
http://nginx.org/

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

Why doesn't Nginx rewrite directive support '@' named_location?

yzprofile March 18, 2014 10:54AM

Re: Why doesn't Nginx rewrite directive support '@' named_location?

Valentin V. Bartenev March 18, 2014 11:10AM

Re: Why doesn't Nginx rewrite directive support '@' named_location?

Maxim Dounin March 18, 2014 11:10AM

回复: Why doesn't Nginx rewrite directive support '@' named_location?

yzprofile March 18, 2014 01:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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