Hi Maxim,<br><br>Did it myself :). I had tried that b4 without success.&nbsp;So, i thought i was doing something wrong.<br> <br>Then killed all the process and restarted it.<br><br>Voila, it started working.<br><br>Anyway thanks a lot for your assistance.<br>
<br>Thanks,<br>Rakesh.<br><br>PS: if you know you are doing the right thing and it doesn&#39;t seem to working, kill nginx process and restart or better check the config file with nginx...cant recall the command though :)<br>
<br><div><span class="gmail_quote">On 3/24/08, <b class="gmail_sendername">Maxim Dounin</b> &lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Hello!<br><br><br> On Mon, Mar 24, 2008 at 12:44:25AM +0530, just starting wrote:<br><br> &gt;hi,<br> &gt;<br> &gt;Can someone specify how to configure nginx as proxy server for:<br> &gt;<br><br>&gt;&nbsp;&nbsp; 1. apache http server running on port 8000<br>
 &gt;&nbsp;&nbsp; 2. apache tomcat server running on port 8080<br><br>&gt;<br> &gt;What I want as end result is:<br> &gt;<br> &gt;<a href="http://myip/">http://myip/</a> should point to the root directory of apache http :<br> &gt;<a href="http://127.0.0.1:8000">http://127.0.0.1:8000</a><br>
 &gt;<a href="http://myip/test">http://myip/test</a> should point to some app hosted in tomcat like :<br> &gt;<a href="http://127.0.0.1:8080/testsite">http://127.0.0.1:8080/testsite</a><br><br><br>Something like:<br><br>&nbsp;&nbsp;&nbsp;&nbsp; location / {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass <a href="http://127.0.0.1:8000">http://127.0.0.1:8000</a>;<br>&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp; location /test {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass <a href="http://127.0.0.1:8080/testsite">http://127.0.0.1:8080/testsite</a>;<br>&nbsp;&nbsp;&nbsp;&nbsp; }<br>
<br> Please refer to <a href="http://wiki.codemongers.com/">http://wiki.codemongers.com/</a> for more information.<br><br><br> Maxim Dounin<br><br></blockquote></div><br>