Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid HTTP_HOST header error on production #14

Closed
cyanfish opened this issue Jul 31, 2016 · 3 comments
Closed

Invalid HTTP_HOST header error on production #14

cyanfish opened this issue Jul 31, 2016 · 3 comments

Comments

@cyanfish
Copy link
Member

Full error message:
Invalid HTTP_HOST header: '173.230.151.075'. You may need to add u'173.230.151.075' to ALLOWED_HOSTS.

Seems to occur a few times a day for no particular reason.

@chris--
Copy link

chris-- commented Jul 31, 2016

Could these errors stem from crawlers/robots that prope the IP instead of the DNS name?

@lakinwecker
Copy link
Collaborator

Should be fixed.

@lakinwecker
Copy link
Collaborator

For the record, that is the cause of the errors. I usually have my front-end servers setup so that unless it's a valid hostname the url 404's immediately, but in this case the heltour app was the default one for these requests, and django will complain about them if the domain doesn't match the ones in the settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants