Please explain this 502 Bad Gateway error

just starting just.starting at gmail.com
Thu Dec 27 21:39:45 MSK 2007


ohh..I forgot to mention that bit to you. I had it setup as 127.0.0.1 and in
that case also it was not working. Then for a change i altered it to
192.168.0.241. I will test it further and let you know how it goes.

>>>Then it's prbably firewall.

How is it possible if both my servers are hosted on the same machine with ip
192.168.0.241.

Thanks
Rakesh.

On Dec 27, 2007 10:43 PM, Igor Sysoev <is at rambler-co.ru> wrote:

> On Thu, Dec 27, 2007 at 10:36:00PM +0530, just starting wrote:
>
> > hi,
> >
> > First of all my sincere thanks.
> >
> > Error Log Entry : [2007/12/27 10:44:07 [error] 2625#0: *7 connect()
> > failed (111: Connection refused) while connecting to upstream, client:
> > 192.168.0.234, server: localhost, request:
> > "GET /KdocProj/dboard.html?_dc=1198726407859 HTTP/1.0", upstream: "
> > http://192.168.0.241:8080/KdocProj/dboard.html?_dc=1198726407859", host:
> "
> > 192.168.0.241:8000"]
> >
> > Let me explain a few things.
> >
> > The machine where I am testing the hosting is 192.168.0.241.
> > nginx is hosted on port 8000 and jetty on 8080 on the same machine
> mentioned
> > above.
> >
> > There is a statement in the error log like : "while connecting to
> upstream,
> > client: 192.168.0.234,", please note that 192.168.0.234 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.
>
> The "client: 192.168.0.234" means that someone on 192.168.0.234 has
> connected
> to nginx and request. nginx proxies the request to 192.168.0.241:8080.
>
> Probably you should set "proxy_pass  http://127.0.0.1:8080" instead
> of 192.168.0.241:8080.
>
> > For Igor:
> > >>>>The "Connection refused" usually means that backend does not listen
> > on 192.168.0.241:8080 or its listen queue is full: it can not handle all
> > requests.
> >
> > 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.
>
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20071228/f687e07a/attachment.html>


More information about the nginx mailing list