Web application using gunicorn in nginx server not working
I had 3 apps in a server running on Ubuntu 22.04. The first one was a Django app, the second a Flask appp under a subdomain and the third one a FastAPI under another subdomain. When I tried to add a fourth one (Flask) I don’t know how I messed up but now none of them work. All the apps run perfectly in my computer.
When I try to access the page through the browser in my computer it returns ERR_CONNECTION_REFUSED
and when accessing throught my phone it returns a 502 Bad Gateway nginx/1.18.0 (Ubuntu)
error. The first one doesn’t log anything in the nginx’s error.log
but the second one does.