Invalid HTTP_HOST header errors in Django and Nginx
If you’re getting “Invalid HTTP_HOST header” errors in a Django application, you probably need to tweak your Nginx configuration. In this post, I’ll explain why this happens and how to properly fix the problem without causing more damage. »