title: Invalid HTTP_HOST header - Django
body: <p>I started receiving a lot of invalid HTTP_HOST on my django server, out of nowhere....</p>
  
  <p>The allowed_hosts are correct, I think someone is trying to break in... here are the fails:</p>
  
  <blockquote>
    <p>Invalid HTTP_HOST header: 'www.google.com'. You may need to add 'www.google.com' to ALLOWED_HOSTS.</p>
    
    <p>Invalid HTTP_HOST header: '127.0.0.1:30303'. You may need to add '127.0.0.1' to ALLOWED_HOSTS.</p>
    
    <p>Invalid HTTP_HOST header: '/home/site/myapp.sock:'. The domain name provided is not valid according to RFC 1034/1035.</p>
    
    <p>Invalid HTTP_HOST header: 'xxxx.members.linode.com'. You may need to add 'xxxx.members.linode.com' to ALLOWED_HOSTS.</p>
  </blockquote>
  
  <p>Any idea why this starts happening?</p>
  
  <p><strong>EDIT</strong>
  nginx conf:</p>
  
  <pre><code> server {
      listen 8000;
      server_name www.myserverdomain.com;
  
  location = /favicon.ico { access_log off; log_not_found off; }
      location /static/ {
          root /home/site/bla/;
      }
      location /media/ {
          root /home/site/bla/;
      }
  
  location / {
          include proxy_params;
          proxy_pass http://unix:/home/site/app.sock;
      }
  
  }
  </code></pre>