Fixing 502 Bad Gateway Nginx

preview_player
Показать описание
This video shows you how to fix the 502 Bad gateway and "connect() failed (111: Connection refused) while connecting to upstream" Nginx errors!

Useful links:
- Affiliate link for $100 free credit for DigitalOcean so you could spin up your own servers:

- How to Troubleshoot Common Nginx Issues on Linux Server:

- More useful Nginx discussions:

- Twitter:
Рекомендации по теме
Комментарии
Автор

If you have any questions feel free to reach out to me! 🙌
Best way to do that is to post a question on the DigitalOcean community forum here:

bobbyiliev_
Автор

I just have to say that this video is incredibly well done, very simple and yet well put steps for everything, to the point of feeling embarrassed after you watch, because those steps should really be simple and make sense right away. Thank you very much.

GlaucoHass
Автор

Brilliant! This video helped me a lot. Thank you and keep it up👍

BruceWayne-cbxj
Автор

Thank you so much Champ.
You have saved me a lot.
Great solution.

johntovor
Автор

Very useful and meaningful content, THANKS!

paulrodaslema
Автор

well that's great. but i can't connect to the nginx this way, it there a way to do that on aws console?

mohamedaly
Автор

thanks for the video!! helped me a lot!!

mananvirmani
Автор

i have same problem but u give solution for docker file, how i can solve it in ubuntu cli terminal

muhammadshehroze
Автор

I create my Wordpress site before for scratch. And a few weeks ago. I put some DNS in my ethernet section. There is no problem with that or i need to change what DNS I put ? I put only 1.1.1.1 and 1.0.0.1 for internet download speed purpose.

And yesterday I see my Wordpress site exprncing 502 nginx error. Although my Wordpress version was old. I update it and all plugins. But instead I resolve my problem it's goes to Maintenance.

Zylaqueza
Автор

When i type docker ps -a the container is empty. What can i do about it?

FRESHGAMENEWS
Автор

Hi, I got 502 bad gateway nginx error on browser after calling DRF api..can you plz tell me how to fix this

ramn
Автор

Thank you so much! I followed your steps and it was indeed because I accidentally closed my node server. Now I feel stupid

xinyansun
Автор

Hi please answer my question..
Iam struggling from last week's.
Iam using gke clustee, configured nginx ingress controller,
2 applications are deployed to gke container ports are for http: 8081, https: 8088, I have configured ingress rules but got 502 bad gate way.
How to troubleshoot this?? How to start the backend service
Helpme with this befor my manager fire me

pravallikachevuru
Автор

Hello bro. when I type sudo cat there is a error like this: cat: No such file or directory . what is wrong? thank you very much.

aslanhuseynov
Автор

hello, what would you do for node js backend server?

suneel
Автор

I just got error bad gateway omg how do u fix that

princezzdaniella
Автор

Whaat is the equivalent cmd to docker ps -a for nodejs server

muskangupta
Автор

Hello Thanks for the great video!
}


location @puma {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}

Im getting a service that is running on port 5000. I checked online and found that it is FLASK service that use by default port 5000. Do you have any idea how to restore it?

Please notice that received this error on a SMTP server with postal application and nothing else installed.

Any ideas on what to do next ? Thank you

AmerMaraqa
Автор

I DONT HAVE A DOCKER ID. tf im supposed to do now

noetim
Автор

i have the same port in the container and nginx.conf so what to do ? its still show me bad getway

maryamalmutairi