Security warning: Your web server is not properly set up to resolve "/.well-known/caldav"

Hi,
I have finished setup of NC 14.0.3 on Alpine Linux + Nginx, however in Administration - Overview - Security setup warnings I get this:

Your web server is not properly set up to resolve "/.well-known/caldav".
Your web server is not properly set up to resolve "/.well-known/carddav".


But I can use calendar and adressbook with any client.
And when I open URL .de/.well-known/carddav I get this in browser:

This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client.

Therefore I don’t understand what is causing this security warning.

Can you please advise?
THX

Did you ever figure this out? I seem to have the same problem!

Although I’m NextCloud 15.0.4 & Apache

The URLs are used for the service discovery, which means that an application can use it to access calendar and contact data without knowing the final access path. This problem has been reported several times and it looks as if it has also been solved.

Please have a look on the following postings: https://help.nextcloud.com/search?q=.well-known%2Fcaldav

I am currently looking through all these postings but I have not yet found a solution.

@coatmaker618 @74cmonty Did either of you find a fix for this issue?

Same here. Nextcloud 19. I also was looking through those posts and the “redirects” mentioned in them as a solution did not work for me.
Though, it seems logical to me because after following the instructions in the documentation shown in the warning message about .htaccess setup redirecting well-known’s works fine for me just as it does for @74cmonty. In my browser I get
This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client.
So it seems like the problem is somewhere else maybe it’s a bug in the nextcloud.

I’m experiencing the same problem. I was going to make a new post, but it looks like it’s so common, I’ll just tag along on this thread.

I’m using Apache 2.4, Nexcloud 19.0.1
I get the warnings for caldav and carddav, but when I navigate to cloud.myserver.com/.well-known/caldav (or carddav) I get redirected to cloud.myserver.com/remote.php/dav/ Both state

“This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client.”

So am I missing something? This issue has been persistent since I first installed the server (v 17, I think?)…

1 Like

same for me: NC 19.0.1 running as Docker container with traefik reverse proxy and letsencrypt SSL cert.
caldav/carddav work from internal network and internet but the error repaets all the time in the server log… any idea?

I was able to fix the issue. Here the solution for Traefik2.

Initially I had this rewrite rules assigned to my NC container
- “traefik.http.middlewares.nextcloud-dav.replacepathregex.regex=https://(.*)/.well-known/(card|cal)dav”
- “traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=https://$${1}/remote.php/dav/”

and fixed the issue by changing to this:
- “traefik.http.middlewares.nextcloud-dav.replacepathregex.regex=^/.well-known/ca(l|rd)dav”
- “traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=/remote.php/dav/”

for me it looks same but for NC health checks it makes some difference.