Skip to content

[ERROR] django.security.DisallowedHost: Invalid HTTP_HOST header #2367

@wyfaq

Description

@wyfaq

Self-Hosted Version

23.8.0

CPU Architecture

x86_64

Docker Version

20.10.9

Docker Compose Version

2.4.1

Steps to Reproduce

  1. start with docker-compose up -d
  2. config root url : sentry.test.cn
  3. use the https://sentry.test.cn , report http_code is 400.
  4. check docker-compose logs ,find errors: sentry-self-hosted-web-1 | 08:00:46 [ERROR] django.security.DisallowedHost: Invalid HTTP_HOST header: 'sentry_ext.test.cn'. The domain name provided is not valid according to RFC 1034/1035. (status_code=400 request=<WSGIRequest: GET '/'>)

Expected Result

I want use domain to open the sentry website,but faild.

Actual Result

sentry-self-hosted-web-1 | 08:00:46 [ERROR] django.security.DisallowedHost: Invalid HTTP_HOST header: 'sentry_ext.test.cn'. The domain name provided is not valid according to RFC 1034/1035. (status_code=400 request=<WSGIRequest: GET '/'>)

Event ID

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions