Recently, I upgrade one of my django sites from http to https. However, after that, I continuously receive Invalid HTTP_HOST header error email while before I n
Invalid HTTP_HOST header
You need to add in a block
location / { }
this condition (for not-yourdomain request):
if ( $host !~* ^(yourdomain.com|www.yourdomain.com)$ ) { return 444; }
and
sudo service nginx reload