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

Disable absolute redirect #2314

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TommyTran732
Copy link

Absolute redirect should be disabled. Currently, it only works by chance because the web container is listening on port 80.

If you try to change the port to something like 8080, the 301 redirect for things like caldav and carddav will be broken.

Signed-off-by: Tommy <contact@tommytran.io>
@J0WI
Copy link
Contributor

J0WI commented Oct 24, 2024

The example also uses port 80 and we take the configuration from https://github.com/nextcloud/documentation/blob/master/admin_manual/installation/nginx-root.conf.sample
It's expected that you need to adopt these examples for your use case.

@TommyTran732
Copy link
Author

It doesn't matter though, when you are using an app behind a reverse proxy (as is the case of nginx in this stack) it is expected that relative redirect is used instead of absolute redirect. Absolute redirect should be disabled for correctness.

I wasted quite a lot of time debugging weird error because of this and I see no reason to not do it to save other people the trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug examples Compose/Dockerfile/etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants