<div>ohh..I forgot to mention that bit to you. I had it setup as <a href="http://127.0.0.1">127.0.0.1</a> and in that case also it was not working. Then for a change i altered it to <a href="http://192.168.0.241">192.168.0.241
</a>. I will test it further and let you know how it goes.</div>
<div>&nbsp;</div>
<div>&gt;&gt;&gt;Then it&#39;s prbably firewall.</div>
<div>&nbsp;</div>
<div>How is it possible if both my servers are hosted on the same machine with ip <a href="http://192.168.0.241">192.168.0.241</a>.</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>Rakesh.<br><br></div>
<div class="gmail_quote">On Dec 27, 2007 10:43 PM, Igor Sysoev &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">On Thu, Dec 27, 2007 at 10:36:00PM +0530, just starting wrote:<br><br>&gt; hi,<br>&gt;<br>&gt; First of all my sincere thanks.<br>&gt;<br>&gt; Error Log Entry : [2007/12/27 10:44:07 [error] 2625#0: *7 connect()
<br>&gt; failed (111: Connection refused) while connecting to upstream, client:<br>&gt; <a href="http://192.168.0.234/" target="_blank">192.168.0.234</a>, server: localhost, request:<br>&gt; &quot;GET /KdocProj/dboard.html?_dc=1198726407859 HTTP/1.0&quot;, upstream: &quot;
<br>&gt; <a href="http://192.168.0.241:8080/KdocProj/dboard.html?_dc=1198726407859" target="_blank">http://192.168.0.241:8080/KdocProj/dboard.html?_dc=1198726407859</a>&quot;, host: &quot;<br>&gt; <a href="http://192.168.0.241:8000/" target="_blank">
192.168.0.241:8000</a>&quot;]<br>&gt;<br>&gt; Let me explain a few things.<br>&gt;<br>&gt; The machine where I am testing the hosting is <a href="http://192.168.0.241/" target="_blank">192.168.0.241</a>.<br>&gt; nginx is hosted on port 8000 and jetty on 8080 on the same machine mentioned
<br>&gt; above.<br>&gt;<br>&gt; There is a statement in the error log like : &quot;while connecting to upstream,<br>&gt; client: <a href="http://192.168.0.234/" target="_blank">192.168.0.234</a>,&quot;, please note that <a href="http://192.168.0.234/" target="_blank">
192.168.0.234</a> is the local proxy<br>&gt; server for internet access. So, what i think happening here is that nginx is<br>&gt; trying to access the local jetty server via proxy.<br><br></div>The &quot;client: <a href="http://192.168.0.234/" target="_blank">
192.168.0.234</a>&quot; means that someone on <a href="http://192.168.0.234/" target="_blank">192.168.0.234</a> has connected<br>to nginx and request. nginx proxies the request to <a href="http://192.168.0.241:8080/" target="_blank">
192.168.0.241:8080</a>.<br><br>Probably you should set &quot;proxy_pass &nbsp;<a href="http://127.0.0.1:8080/" target="_blank">http://127.0.0.1:8080</a>&quot; instead<br>of <a href="http://192.168.0.241:8080/" target="_blank">
192.168.0.241:8080</a>.<br>
<div class="Ih2E3d"><br>&gt; For Igor:<br>&gt; &gt;&gt;&gt;&gt;The &quot;Connection refused&quot; usually means that backend does not listen<br>&gt; on <a href="http://192.168.0.241:8080/" target="_blank">192.168.0.241:8080
</a> or its listen queue is full: it can not handle all<br>&gt; requests.<br>&gt;<br>&gt; I am the only one testing this implementation. So, I dont think the listen<br>&gt; queue is full and also I made sure that jetty is listening on port 8080.
<br><br></div>
<div>
<div></div>
<div class="Wj3C7c"><br><br>--<br>Igor Sysoev<br><a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br><br></div></div></blockquote></div><br>