nginx/0.8.54 - 502 Bad Gateway

Antoine Bonavita antoine.bonavita at gmail.com
Thu Jul 21 07:06:57 UTC 2011


Hello,

First replace
proxy_pass http://127.0.0.1:8080;
by
 proxy_pass http://monsite.com:8080;

If that doesn't work, look at firewall settings, yes. Port 8080 on the
upstream must be accessible from the machine running nginx (even if
they are the same physical machine).

A.

On Thu, Jul 21, 2011 at 6:40 AM, nginxn00b <nginx-forum at nginx.us> wrote:
>>>Your backend / application isn't working that's why nginx can't
> connect to it and has to return 502.
>
> The app is up and running on port 8080. I can access the app directly
> using mysite.com:8080. Do I have to configure something else, maybe the
> firewall?
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,212680,212719#msg-212719
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



More information about the nginx mailing list