Our web server is not properly set up to resolve "/.well-known/webfinger"

As the title says, i have this error:

  • Your web server is not properly set up to resolve “/.well-known/webfinger”. Further information can be found in the documentation :arrow_upper_right:.
  • Your web server is not properly set up to resolve “/.well-known/nodeinfo”. Further information can be found in the documentation :arrow_upper_right:.

I’ve tried the HTaccess, ive tried so much stuff but nothing works. I don’t know what to do at this point.

htaccess:

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]

nextcloud.conf:
GNU nano 6.2 nextcloud.conf
<VirtualHost *:80>
ServerName URL
Redirect permanent / URL

<VirtualHost *:443>
ServerName [URL]
DocumentRoot /var/www/html/nextcloud
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/[URL]/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/[URL]/privkey.pem
Header always set Strict-Transport-Security “max-age=15552000; includeSubDomains; preload”
<Directory /var/www/html/nextcloud>
Options FollowSymLinks
AllowOverride All
Require all granted

i dont know what to do anymore.

Hello @Person0z
It is best to take a look at the second point in our instructions; we were able to solve the problems like this! If you still have questions, please feel free to get in touch!
Best regards,
schBenedikt

—-
https://technik.schächner.de/blog/2022/08/05/sicherheits-und-einrichtungswarnungen-nextcloud/

I’ve got the rewrite rules you mention in /etc/apache2/sites-enabled/nextcloud.conf which does the trick

Did not work for me, sadly

Ive tried it did not work, so im not sure on what to do