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
This commit is contained in:
Francis Lavoie 2021-02-10 12:34:45 -05:00 committed by backportbot[bot]
parent e6d9b8ccb8
commit 79fc0f27c4

View File

@ -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}
}