Skip to content

Unusual "Invalid HTTP_HOST header" errors #88

@reginafcompton

Description

@reginafcompton

Since deploying via the zero downtime pattern, the site has raised several mysterious Invalid HTTP_HOST header errors.

Invalid HTTP_HOST header: '/tmp/coordinated-entry-screening-d-68VO4P8QX.sock:'. The domain name provided is not valid according to RFC 1034/1035.

See sentry for full report.

The Sentry breadcrumbs suggest that this error originates with robots, crawling the site, looking for security weaknesses. But one must wonder: how could someone(thing) know about the nginx sock? It seems like this might be coming from "inside the house." Some things to do:

  • add a robots.txt file (to be sure!)
  • configure a proper 404 and determine where the current one comes from - it came from rapidsms
  • investigate places where the app sends http requests/responses, particularly, the various dependencies required for sending text messages and communicating with Twilio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions