mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-01-14 21:23:29 +01:00
DisallowedHost: Invalid HTTP_HOST header #64
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hackdefendr on GitHub (Nov 8, 2025).
This is a brand new fresh installation and the only thing I did different was to put an Nginx reverse proxy in front of the app. DJANGO_ALLOWED_HOSTS is default, but it won't allow me to access and instead throws an HTTP 400 as shown below:
I have already tried adding my server's fqdn in my hosts file and on that DJANGO_ALLOWED_HOSTS configuration in .env and still it won't let me access the web frontend.
Can someone please help?
@eitchtee commented on GitHub (Nov 8, 2025):
Hey there
What does your DJANGO_ALLOWED_HOSTS variable looks like?
It should look something like this:
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1] finance.knowelltech.net
@eitchtee commented on GitHub (Nov 8, 2025):
Also, are you using HTTPS? If not, you may want to set HTTPS_ENABLED to false
@hackdefendr commented on GitHub (Nov 8, 2025):
That was it. Order of operation. I had my hostname first and never tried it like you showed.
Thanks!!
@eitchtee commented on GitHub (Nov 8, 2025):
For future reference: the order should not matter, but who knows. Either way, glad you got it working, hoping you like the app.