<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 26, 2014 at 2:35 AM, Francis Daly <span dir="ltr"><<a href="mailto:francis@daoine.org" target="_blank">francis@daoine.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Sep 26, 2014 at 01:20:18AM +0530, thunder hill wrote:<br>
<br>
Hi there,<br>
<span class=""><br>
> When I access <a href="http://mysite.com/app1" target="_blank">mysite.com/app1</a> the upstream server rewrites the url like<br>
> <a href="http://mysite.com/login" target="_blank">mysite.com/login</a> instead of <a href="http://mysite.com/app1/login" target="_blank">mysite.com/app1/login</a> and the result is a<br>
> blank page.<br>
><br>
> Users are allowed either <a href="http://mysite.com/app1" target="_blank">mysite.com/app1</a> or <a href="http://mysite.com/app2" target="_blank">mysite.com/app2</a>. In both the<br>
> cases app1 and app2 are getting rewritten with login or some other<br>
> extension. How to solve this issue.?<br>
<br>
</span>I believe that the easiest way, if you want both to be available via<br>
the same hostname, is to install-or-configure app1 on backend1 to be<br>
available below the url /app1/, not below /.<br>
<br>
And do something similar for app2.<br>
<br>
And then remove the final "/" in your proxy_pass directives.<br></blockquote><div><br></div><div>Thats the easiest way. Unfortunately there is no control over backend server(s). </div><div><br></div><div>Just a thought: </div><div>Is there a way to keep the url <a href="http://mysite.com/app1">mysite.com/app1</a> and go on with <a href="http://mysite.com/app1/login">mysite.com/app1/login</a>. That means backend server can only rewrite the strings after <a href="http://mysite.com/app1">mysite.com/app1</a></div><div>Or are there any other ways?</div><div><br></div><div>Regards</div><div>T</div></div></div></div>