Daniel Marino
18 October 2024
Fixing Recurrent HTTP 502 Bad Gateway Issues in Django-Celery Configuration Using AWS ALB

When operating a Django-Celery configuration behind an AWS ALB, persistent HTTP 502 Bad Gateway problems are addressed in this article. There includes discussion of problems including incorrect Nginx configurations, ALB health check failures, and SSL certificate mismatches. Using legitimate SSL certificates, matching ALB health checks to backend paths, and setting up the Gunicorn server to appropriately handle inbound requests are some solutions.