Webserver "/.well-known/caldav" - Synology Docker Nextcloud Nginx CalDav/CardDav

Finally I’ve found the solution.

You have to edit file .htaccess located in docker/your_nextcloud_folder.
Under <IfModule mod_rewrite.c> you have to edit just 2 strings:

RewriteRule ^\.well-known/carddav /remote.php/dav/ [R=301,L]
RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L]

It should looks like this:

RewriteRule ^\.well-known/carddav https://your_site_address/remote.php/dav/ [R=301,L]
RewriteRule ^\.well-known/caldav https://your_site_address/remote.php/dav/ [R=301,L]

I’m not sure, but after editing you may have to restart Nextcloud container.

Sorry for my English.

3 Likes