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

  • Linux Debian 6.1.0
  • PHP Version 8.2.7
  • Apache 2.4.57
  • Nextcloud 27.1.2 [but also previous versions]

I tried to implement what suggested in the documentation and in various posts I found here and other places, but I never managed to get rid of these warnings:

Your web server is not properly set up to resolve “/.well-known/webfinger”.
Your web server is not properly set up to resolve “/.well-known/nodeinfo”.
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”

Everything works fine, but it would be great to find a solution.

Where and what exacltly did you try?
Please give more details about your Nextcloud server

I tried what suggested here: General troubleshooting — Nextcloud latest Administration Manual latest documentation

I also tried to insert the same in various other places, like apache.conf or .htaccess inside the nextcloud subfolder and/or root document or etc.

What additional information regarding my Nextcloud server do your require?
As mentioned, this is the basic information:

Linux Debian 6.1.0
PHP Version 8.2.7
Apache 2.4.57
Nextcloud 27.1.2 [but also previous versions]
MariadDB  10.11.4

See my posting above. Additional please post the folder and name of file, where you did add the .well-known - entries and the lines themselves.

As per documentation, I entered the following in /nextcloud/,htaccess but I also tried to enter it in the web server root document .htaccess

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule ^\.well-known/carddav /nextcloud/remote.php/dav [R=301,L]
  RewriteRule ^\.well-known/caldav /nextcloud/remote.php/dav [R=301,L]
  RewriteRule ^\.well-known/webfinger /nextcloud/index.php/.well-known/webfinger [R=301,L]
  RewriteRule ^\.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo [R=301,L]
</IfModule>

Either way, I still get the warning.

I also tried this within the /nextcloud/.htaccess

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule ^\.well-known/carddav /remote.php/dav [R=301,L]
  RewriteRule ^\.well-known/caldav /remote.php/dav [R=301,L]
  RewriteRule ^\.well-known/webfinger /index.php/.well-known/webfinger [R=301,L]
  RewriteRule ^\.well-known/nodeinfo /index.php/.well-known/nodeinfo [R=301,L]
</IfModule>

Problem solved by adding the following in my Nextcloud .conf file for apache2

  <Directory /var/www/html/nextcloud/>
    Require all granted
    AllowOverride All
    Options FollowSymLinks MultiViews

    <IfModule mod_dav.c>
      Dav off
    </IfModule>
  </Directory>
3 Likes