Welcome! Log In Create A New Profile

Advanced

Re: nginx/0.8.54 - 502 Bad Gateway

Antoine Bonavita
July 21, 2011 03:08AM
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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx/0.8.54 - 502 Bad Gateway

nginxn00b July 20, 2011 09:43AM

Re: nginx/0.8.54 - 502 Bad Gateway

António P. P. Almeida July 20, 2011 12:00PM

Re: nginx/0.8.54 - 502 Bad Gateway

nginxn00b July 20, 2011 12:18PM

Re: nginx/0.8.54 - 502 Bad Gateway

Reinis Rozitis July 20, 2011 12:28PM

Re: nginx/0.8.54 - 502 Bad Gateway

Adam Tucker July 20, 2011 12:40PM

Re: nginx/0.8.54 - 502 Bad Gateway

Adam Tucker July 20, 2011 12:40PM

Re: nginx/0.8.54 - 502 Bad Gateway

nginxn00b July 21, 2011 12:40AM

Re: nginx/0.8.54 - 502 Bad Gateway

Antoine Bonavita July 21, 2011 03:08AM

Re: nginx/0.8.54 - 502 Bad Gateway

nginxn00b July 21, 2011 05:10AM

Re: nginx/0.8.54 - 502 Bad Gateway

Antoine Bonavita July 21, 2011 06:02AM

Re: nginx/0.8.54 - 502 Bad Gateway

nginxn00b July 21, 2011 08:06AM

Re: nginx/0.8.54 - 502 Bad Gateway

Antoine Bonavita July 22, 2011 03:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 210
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready