Server is not properly set up to resolve "/.well-known/caldav"

Nextcloud version (eg, 18.0.2):
Operating system and version (eg, Ubuntu 20.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:

I cant connect to DAVx5 and my server gives me the error "Your web server is not properly set up to resolve “/.well-known/caldav” which I am not able to resolve after triying every solution i found online and reading the docs.
I installed Nc along this tutorial:

Is this the first time you’ve seen this error? (Y/N):
Yes

Steps to replicate it:

  1. have not yet tried replicaten, due to limited knowlege

The output of your Nextcloud log in Admin > Logging:

Trying to access array offset on value of type bool at /var/www/nextcloud/apps/dav/lib/CalDAV/CalDavBackend.php#1320

The output of your Apache/nginx/system log in /var/log/____:

[Mon Sep 07 00:00:26.092538 2020] [mpm_prefork:notice] [pid 238] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Mon Sep 07 00:00:26.092562 2020] [core:notice] [pid 238] AH00094: Command line: '/usr/sbin/apache2'
[Mon Sep 07 13:36:38.375029 2020] [mpm_prefork:notice] [pid 238] AH00169: caught SIGTERM, shutting down
[Mon Sep 07 13:44:21.075170 2020] [mpm_prefork:notice] [pid 264] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Mon Sep 07 13:44:21.081912 2020] [core:notice] [pid 264] AH00094: Command line: '/usr/sbin/apache2'
sh: 1: disown: not found
[Mon Sep 07 13:47:02.859622 2020] [php7:warn] [pid 315] [client 192.168.2.240:43304] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocuments>
fuse: device not found, try 'modprobe fuse' first
open dir error: No such file or directory
[Mon Sep 07 13:47:02.909940 2020] [php7:warn] [pid 315] [client 192.168.2.240:43304] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocuments>
[Mon Sep 07 13:47:02.960291 2020] [php7:warn] [pid 315] [client 192.168.2.240:43304] PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocuments>
<umentscode/proxy.php on line 253