I had the same issue and solved it adding the following lines in /etc/apache2/sites-available/nextcloud.conf
Redirect 301 /.well-known/carddav https://MyServer/nextcloud/remote.php/dav
Redirect 301 /.well-known/caldav https://MyServer/nextcloud/remote.php/dav