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 host header issue #192

Open
enoxos opened this issue Jan 14, 2025 · 0 comments
Open

Invalid host header issue #192

enoxos opened this issue Jan 14, 2025 · 0 comments

Comments

@enoxos
Copy link

enoxos commented Jan 14, 2025

Hello and thank you for any help in advance.

I have installed etebase on a Linux Ubuntu server 22 with apache reverse proxy. In the apache's configuration file I am forcing the Host header to the public domain name of the server with
RequestHeader set Host server-domain-name.com

The etebase server also serves via https and it works well locally when the [allowed hosts] in the ini allows for all hosts (*). This however was giving an HTTP 400 error when tried to log in using the android app remotely (expected locahost). After reading in some other posts that the [allowed hosts] needs to be filled in the ini file, I did so with no luck. I have added multiple combination of the host using allowed_host1 , allowed_host2, etc, but no matter what combination I put (host, host:port (not serving via 443), etc) I get the same error:

Invalid Host Header

I even put the hosts directly into the settings.py thinking that the parser may not work properly because after turning the debug mode on and then off in the ini, the settings.py still had the debug mode set to True and I manually changed it to False.

Any advice with the Invalid Host Header is appreciated.

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

1 participant