Hi Maxim,<br><br>Did it myself :). I had tried that b4 without success. 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'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> <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>> 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> >hi,<br> ><br> >Can someone specify how to configure nginx as proxy server for:<br> ><br><br>> 1. apache http server running on port 8000<br>
> 2. apache tomcat server running on port 8080<br><br>><br> >What I want as end result is:<br> ><br> ><a href="http://myip/">http://myip/</a> should point to the root directory of apache http :<br> ><a href="http://127.0.0.1:8000">http://127.0.0.1:8000</a><br>
><a href="http://myip/test">http://myip/test</a> should point to some app hosted in tomcat like :<br> ><a href="http://127.0.0.1:8080/testsite">http://127.0.0.1:8080/testsite</a><br><br><br>Something like:<br><br> location / {<br>
proxy_pass <a href="http://127.0.0.1:8000">http://127.0.0.1:8000</a>;<br> }<br> location /test {<br> proxy_pass <a href="http://127.0.0.1:8080/testsite">http://127.0.0.1:8080/testsite</a>;<br> }<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>