<div>hi,</div>
<div> </div>
<div>First of all my sincere thanks.</div>
<div> </div>
<div>Error Log Entry : [2007/12/27 10:44:07 [error] 2625#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: <a href="http://192.168.0.234">192.168.0.234</a>, server: localhost, request: "GET /KdocProj/dboard.html?_dc=1198726407859 HTTP/1.0", upstream: "
<a href="http://192.168.0.241:8080/KdocProj/dboard.html?_dc=1198726407859">http://192.168.0.241:8080/KdocProj/dboard.html?_dc=1198726407859</a>", host: " <a href="http://192.168.0.241:8000">192.168.0.241:8000</a>
"]</div>
<div> </div>
<div>Let me explain a few things.</div>
<div> </div>
<div>The machine where I am testing the hosting is <a href="http://192.168.0.241">192.168.0.241</a>.</div>
<div>nginx is hosted on port 8000 and jetty on 8080 on the same machine mentioned above.</div>
<div> </div>
<div>There is a statement in the error log like : "while connecting to upstream, client: <a href="http://192.168.0.234">192.168.0.234</a>,", please note that <a href="http://192.168.0.234">192.168.0.234</a> is the local proxy server for internet access. So, what i think happening here is that nginx is trying to access the local jetty server via proxy.
</div>
<div> </div>
<div>For Igor:</div>
<div>>>>>The "Connection refused" usually means that backend does not listen<br>on <a href="http://192.168.0.241:8080">192.168.0.241:8080</a> or its listen queue is full: it can not handle all<br>requests.
</div>
<div> </div>
<div>I am the only one testing this implementation. So, I dont think the listen queue is full and also I made sure that jetty is listening on port 8080.</div>
<div> </div>
<div>Thanks,</div>
<div>Rakesh.</div>
<div> </div>
<div>PS: I appreciate for your quick reply. Frankly I haven't hoped for such quick reply. Hope you do well in the future.</div>
<div><br><br> </div>
<div class="gmail_quote">On Dec 27, 2007 10:00 PM, Aleksandar Lazic <<a href="mailto:al-nginx@none.at">al-nginx@none.at</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br>
<div class="Ih2E3d"><br>On Don 27.12.2007 20:50, just starting wrote:<br>>hi,<br>><br>>I am using version 0.5.34.<br>><br>>I am testing nginx as a proxy server + static file server for my test<br>>site deployed on jetty.
<br>><br>>Can you please explain the error mentioned here.<br>><br>>Error Log Entry : [2007/12/27 10:44:07 [error] 2625#0: *7 connect() failed<br>>(111: Connection refused) while connecting to upstream, client:
<br><br></div>Which clearly say:<br><br>the connection to <a href="http://192.168.0.241/" target="_blank">192.168.0.241</a> on port 8080 with protocol http was not<br>successful.<br><br>What is in the jetty log?<br>Are you able to reach jetty with curl, curl -v
<br><a href="http://192.168.0.241:8080/" target="_blank">http://192.168.0.241:8080/</a> ?<br>Is a FW between nginx & jetty?<br>
<div class="Ih2E3d"><br>><a href="http://192.168.0.234/" target="_blank">192.168.0.234</a>, server: localhost, request: "GET<br>>/KdocProj/dboard.html?_dc=1198726407859 HTTP/1.0", upstream: "<br>>
<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>", host: "<br>><a href="http://192.168.0.241:8000/" target="_blank">
192.168.0.241:8000</a>"]<br><br></div>Cheers<br><br>Aleks<br><br></blockquote></div><br>