From 9d802f03234c078ca351b992cf5d0f81fba165a4 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Thu, 6 Jun 2024 12:43:50 +0200 Subject: [PATCH] caddy: fix rewriting .well-known to remote.php Signed-off-by: Simon L --- Containers/apache/Caddyfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Containers/apache/Caddyfile b/Containers/apache/Caddyfile index 79ecee8beef..8e7e4a2192c 100644 --- a/Containers/apache/Caddyfile +++ b/Containers/apache/Caddyfile @@ -53,11 +53,11 @@ https://{$ADDITIONAL_TRUSTED_DOMAIN}:443, # Nextcloud route { - rewrite /.well-known/carddav /remote.php/dav/ - rewrite /.well-known/caldav /remote.php/dav/ header Strict-Transport-Security max-age=31536000; reverse_proxy 127.0.0.1:8000 } + redir /.well-known/carddav /remote.php/dav/ 301 + redir /.well-known/caldav /remote.php/dav/ 301 # TLS options tls {