<p>I will try it and post my findings soon.</p><p>Thanks,<br></p><p>Rakesh.</p><br><div class="gmail_quote">On Mon, Nov 24, 2008 at 5:47 PM, Dave Cheney <span dir="ltr">&lt;<a href="mailto:dave@cheney.net">dave@cheney.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Rakesh,<br>
<br>
The rules for location matching are layed out here<br>
<br>
<a href="http://wiki.codemongers.com/NginxHttpCoreModule#location" target="_blank">http://wiki.codemongers.com/NginxHttpCoreModule#location</a><br>
<br>
I think what you are trying to do might look like this<br>
<br>
server {<br>
<br>
 &nbsp;server_name ...<br>
<br>
 &nbsp;include proxy.conf;<br>
<br>
 &nbsp;# match exactly /top.xml<br>
 &nbsp;location = /top.xml {<br>
 &nbsp; &nbsp; proxy_pass <a href="http://apache" target="_blank">http://apache</a>;<br>
 &nbsp;}<br>
<br>
 &nbsp;# match *.xml {<br>
 &nbsp;location ~* \.xml {<br>
 &nbsp; &nbsp; proxy_pass <a href="http://jetty" target="_blank">http://jetty</a><br>
 &nbsp;}<br>
<br>
}<br>
<br>
Cheers<br><font color="#888888">
<br>
Dave</font><div><div class="Wj3C7c"><br>
<br>
On 24/11/2008, at 10:53 PM, just starting wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Please consider this following scenario.<br>
<br>
I have 2 servers(1 jetty and the other is apache) with nginx as proxy servers to both.<br>
<br>
I forward all the jsp queries to jetty and all the php queries to apache httpd and serve the static content of both the servers by nginx.<br>
<br>
Now the problem is there is one xml file &quot;top.xml&quot;, generated by httpd which i must send the request to httpd and also i need to send all the request to *.xml to jetty(i have asked the dev team to make sure there is no top.xml file in jetty).<br>

<br>
Can you suggest some configuration settings to achieve this.<br>
<br>
Right now I have tried that for top.xml go to httpd and for *.xml go to jetty, but clearly the rule with *.xml overrides the top.xml condition.<br>
<br>
My question is how the rules in the conf file processed when it comes to proxying the request to different servers.<br>
<br>
Thanks,<br>
<br>
Rakesh.<br>
<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br>