Re: Flood of ''Invalid HTTP_HOST header" mails

2015-01-23 Thread andi-h
Hi Collin, that's a 'yes' to all three questions (loading settings for wrong website was no question). In the meantime I have found the "error": As I wrote below my ALLOW_HOSTS variable was a tuple of ordinary strings ("www.example.com") as in the documentation. Using instead unicode strings

Re: Flood of ''Invalid HTTP_HOST header" mails

2015-01-21 Thread Collin Anderson
Hi, So django is rejecting hosts even though they are listed in ALLOWED_HOSTS? Are you using apache/mod_wsgi by chance? It could be loading the settings for the wrong website. I assume you are reloading the server in between changes to the file. Collin On Monday, January 19, 2015 at 1:18:11 P

Flood of ''Invalid HTTP_HOST header" mails

2015-01-19 Thread Andreas Pritschet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi folks, after upgrading my project to Django 1.7 it seems my host validation got a bit out of control. I have tried these possibilities, but my web server continues to send lots of mail about invalid HTTP_HOST headers: ALLOWED_HOSTS = [ ".example.c