<div>hi,</div>
<div>&nbsp;</div>
<div>When I dont put a trailing &#39;/&#39;, the testsite is redirecting me to localhost.</div>
<div>&nbsp;</div>
<div>conf file snippet:</div>
<div>location /testsite/ {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root /usr/local/nginx/html;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; index index.html view.html /view.html;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error_page 404 = @jetty;<br>}</div>
<div>&nbsp;</div>
<div>Now when I enter <a href="http://www.mysite.com/testsite/">www.mysite.com/testsite/</a> it works fine, but when I try <a href="http://www.mysite.com/mysite">www.mysite.com/mysite</a> it redirects me to <a href="http://localhost/testsite/">http://localhost/testsite/</a></div>

<div>&nbsp;</div>
<div>What is the problem here.</div>
<div>&nbsp;</div>
<div>If you cant come to any conclusion without looking at the conf file let me know, I will copy it.</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>Rakesh.</div>