<br clear="all">

<p class="MsoNormal">Thanks for your updates. We are able to proxypass to another
domain. But the issue is domain’s sub directories are not working fine.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">That is in </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">server {</p>

<p class="MsoNormal"><span style>                </span>listen
80;</p>

<p class="MsoNormal">server_name <a href="http://geotest.com">geotest.com</a>;</p>

<p class="MsoNormal">proxy_set_header Host<span style> 
</span><a href="http://geotest.com">geotest.com</a>; </p>

<p class="MsoNormal">proxy_set_header X-Real-IP $remote_addr;</p>

<p class="MsoNormal" style="line-height:13.5pt;background:#eeeeee;vertical-align:baseline"><span style="font-size:10.5pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#eeeeee">proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;</span><span style>   </span></p>

<p class="MsoNormal"><span style>               
</span>location / {</p>

<p class="MsoNormal"><span style>                             
</span><span style>  </span>proxy_pass<span style>  </span><a href="http://192.168.1.1">http://192.168.1.1</a>;</p>

<p class="MsoNormal"><span style>                             
</span><span style>     </span>}</p>

<p class="MsoNormal">location /cms {</p>

<p class="MsoNormal"><span style>                                </span>proxy_pass <a href="http://192">http://192</a>.168.1.2;</p>

<p class="MsoNormal"><span style>                                </span>}</p>

<p class="MsoNormal"><span style>                </span>}</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">While accessing <a href="http://geotest.com/cms">geotest.com/cms</a> we are getting the application
that running on 192.168.1.2 but when we access <a href="http://geotest.com/cms/address">geotest.com/cms/address</a> we are
not getting the address page but insated we are getting the same index page.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">That’s we are unable to access any subdirectories inside
/cms/ if we access we are getting the index page only.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">So can you please guys help us on it.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks</p>

<p class="MsoNormal">Geo</p>

<br><br><div class="gmail_quote">On Wed, Mar 20, 2013 at 2:12 PM, Igor Sysoev <span dir="ltr"><<a href="mailto:igor@sysoev.ru" target="_blank">igor@sysoev.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div class="im"><div><div>On Mar 19, 2013, at 18:41 , Andreas Weber wrote:</div><div><br></div><blockquote type="cite"><div>Im not expert but i think you must specify /cms BEFORE / because "/" will match everything</div>

</blockquote></div><div><br></div></div>No. Since "/" and "/cms" are not regex locations, nginx finds the maximum match despite<div>location order. This is why using only non-regex locations allows to create at once large and</div>

<div>easy to maintain configurations with a lot of locations.</div><div><div><br></div><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Georgia;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Georgia;word-spacing:0px"><div style="word-wrap:break-word">

<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Georgia;word-spacing:0px"><div style="word-wrap:break-word">

<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Georgia;word-spacing:0px"><br>

--<br>Igor Sysoev<br></span></div><div style="word-wrap:break-word"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Georgia;word-spacing:0px"><a href="http://nginx.com/services.html" target="_blank">http://nginx.com/services.html</a></span></div>

</span></div></span></span>
</div>
<br></div></div><br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br>