AWS elastic Beanstalk / nginx : connect() failed (111: Connection refused AWS elastic Beanstalk / nginx : connect() failed (111: Connection refused express express

AWS elastic Beanstalk / nginx : connect() failed (111: Connection refused


111 connection refused likely means your app isn't running on the server/port combination. Also check that the security group for your app instance (or load balancer) has an inbound rule set to allow traffic from the nginx instance


Just recording my incident here just in case it helps someone or my future self. I had a Django application that had SECURE_SSL_REDIRECT set to True. Since I had no load balancers configured to handle HTTPS traffic I was getting a timeout. Setting it to False fixed the issue. Couple of days wasted on that one.