From bcfa51187cfe85c0f58538463ca67c9edcf13144 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Wed, 10 Feb 2021 12:34:45 -0500 Subject: [PATCH] Clean up Caddy proxy example It's incorrect to use `reverse_proxy` for the dav paths because Caddy does not support paths in proxy addresses. Using a rewrite is the correct solution. Was also pointed out here: https://github.com/nextcloud/documentation/pull/5894#issuecomment-772874944 --- .../configuration_server/reverse_proxy_configuration.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/admin_manual/configuration_server/reverse_proxy_configuration.rst b/admin_manual/configuration_server/reverse_proxy_configuration.rst index f5672b475..88c0fe311 100644 --- a/admin_manual/configuration_server/reverse_proxy_configuration.rst +++ b/admin_manual/configuration_server/reverse_proxy_configuration.rst @@ -128,11 +128,10 @@ CADDY :: subdomain.example.com { - reverse_proxy /.well-known/carddav {$NEXTCLOUD_HOST:localhost}/remote.php/dav + rewrite /.well-known/carddav /remote.php/dav + rewrite /.well-known/caldav /remote.php/dav - reverse_proxy /.well-known/caldav {$NEXTCLOUD_HOST:localhost}/remote.php/dav - - reverse_proxy * {$NEXTCLOUD_HOST:localhost} + reverse_proxy {$NEXTCLOUD_HOST:localhost} }