radicale: Redirect from .well-known URLs only temporarily

- When Nextcloud is enabled, it takes over the .well-known URLs. We don't want
the redirect result to be cached resulting in wanted behavior.

Tests:

- curl -k https://192.168.122.87/.well-known/caldav and curl -k
https://192.168.122.87/.well-known/carddav results in 302 Found responses
instead of 301 permanent redirects.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2026-08-21 21:29:53 -07:00 committed by James Valleroy
parent 7a88c46bb2
commit 8297e74398
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -2,8 +2,8 @@
## On all sites, provide Radicale on a path: /radicale
## Allow all valid users.
##
Redirect 301 /.well-known/carddav /radicale/
Redirect 301 /.well-known/caldav /radicale/
Redirect temp /.well-known/carddav /radicale/
Redirect temp /.well-known/caldav /radicale/
<Location ~ ^/radicale$>
<IfModule mod_rewrite.c>