nginx rewrite url without causing redirect and proxy to backend app

nanaya me at
Wed Nov 4 03:43:46 UTC 2015

On Wed, Nov 4, 2015, at 05:27 AM, kodeninja wrote:
> Howdy, everyone!
> I'm trying to figure out if there's a way to achieve this with nginx:
> <>.
> I didn't get response on the SO question yet, so trying my luck here :).
> Please let me know if this is possible.

 A request URI is passed to the server as follows:

    If the proxy_pass directive is specified with a URI, then when a
    request is passed to the server, the part of a normalized request
    URI matching the location is replaced by a URI specified in the

location /name/ {

Also in case of rewrite you probably want `break` since `last` restart
location matching process

More information about the nginx mailing list