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

nginx 301 'well known' change needed to support http2 #7137

Closed
hcoin opened this issue Sep 20, 2021 · 1 comment
Closed

nginx 301 'well known' change needed to support http2 #7137

hcoin opened this issue Sep 20, 2021 · 1 comment

Comments

@hcoin
Copy link

hcoin commented Sep 20, 2021

The current nginx config for 'well known' addresses follows the pattern

    location = /.well-known/caldav  { return 301 /remote.php/dav/;  }

which is fine except when nginx is behind a proxy or using http2. In those cases, the redirect adds the non-standard port/protocol (usually 8443 instead of 443) and the direct fails-- as that port is not exposed to the client. I suggest changing all 301's along the lines

    location = /.well-known/caldav  { return 301 https://$server_name/remote.php/dav/; }

which will force the client to use the 443 port, and allow the proxy / load balancing logic to do its work properly.

@joshtrichards
Copy link
Member

Duplicate of #899

@joshtrichards joshtrichards marked this as a duplicate of #899 Feb 26, 2024
@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants