Welcome! Log In Create A New Profile

Advanced

Re: Rewriting location directive by upstream servers

Francis Daly
September 25, 2014 05:08PM
On Fri, Sep 26, 2014 at 01:20:18AM +0530, thunder hill wrote:

Hi there,

> When I access mysite.com/app1 the upstream server rewrites the url like
> mysite.com/login instead of mysite.com/app1/login and the result is a
> blank page.
>
> Users are allowed either mysite.com/app1 or mysite.com/app2. In both the
> cases app1 and app2 are getting rewritten with login or some other
> extension. How to solve this issue.?

I believe that the easiest way, if you want both to be available via
the same hostname, is to install-or-configure app1 on backend1 to be
available below the url /app1/, not below /.

And do something similar for app2.

And then remove the final "/" in your proxy_pass directives.

f
--
Francis Daly francis@daoine.org

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

Rewriting location directive by upstream servers

thunder hill September 25, 2014 03:56PM

Re: Rewriting location directive by upstream servers

Francis Daly September 25, 2014 05:08PM

Re: Rewriting location directive by upstream servers

thunder hill September 26, 2014 12:44AM

Re: Rewriting location directive by upstream servers

Francis Daly September 30, 2014 02:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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