NethServer Version: 7.9.2009
Module: NextCloud
The NextCloud module has got a setting to turn on Service discovery (“Enable CalDAV and CardDAV auto-discovery”, Nextcloud — NethServer 7 Final ). However following recent NextCloud updates, the URL seem to have changed.
In the file /etc/e-smith/templates/etc/httpd/conf.d/zz_nextcloud.conf/10base, current code is:
if ($wellknown eq 'enabled' && $vhost eq '') {
$OUT .= " \n\n# Enable webdav redirect\n";
$OUT .= " Redirect 301 /.well-known/host-meta /nextcloud/public.php?service=host-meta\n";
$OUT .= " Redirect 301 /.well-known/host-meta.json /nextcloud/public.php?service=host-meta-json\n";
$OUT .= " Redirect 301 /.well-known/webfinger /nextcloud/public.php?service=webfinger\n";
$OUT .= " Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav/\n";
$OUT .= " Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav/\n";
}
But according to General troubleshooting — Nextcloud latest Administration Manual latest documentation it might need to be as follow:
if ($wellknown eq 'enabled' && $vhost eq '') {
$OUT .= " \n\n# Enable webdav redirect\n";
$OUT .= " Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav\n";
$OUT .= " Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav\n";
$OUT .= " Redirect 301 /.well-known/webfinger /nextcloud/index.php/.well-known/webfinger\n";
$OUT .= " Redirect 301 /.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo\n";
}
For now, as user, I have copied the original file in a custom template and applied the change there.