I get a lot of invalid HTTP_HOST header messages from my Django web application -
[Django] ERROR: Invalid HTTP_HOST header: "www.bing.com". You may need to add u'www.bing.com 'to ALLOWED_HOSTS
It is used on well-known websites (e.g. bing.com, google.com), as well as on very random websites ( www2t.biglobe.ne.jp, proxy.me5b.ru).
Message in letters:
Missing stack trace available
The repr () request is not available.
I read other questions about this on other SO questions like this and this,
and a good blog post like this .
But they all seem to indicate that this problem should have been resolved in Django 1.6. However, I am running Django 1.6.2 and still see this error. I am using Apache WSGI and the application is hosted on AWS Elasticbeanstalk.
Maybe I can suppress these warning messages, but should I expect them first?
source
share