I can't connect my Flask Gunicorn app with nginx


I have made a Flask Gunicorn Application, but I can’t connect it with nginx.
I am using the latest version of nginx. I followed this guide And done everything as shown there.

I programmed a completely empty flask app, which worked. But as soon as I connect my real app, I always get the error 502 Bad Gateway.

Can anyone help me?

(Sorry for my bad english skills)


I found my mistake. I set flask to use https, but nginx was still set to http

Answered By – domx4q

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published