I have version 22.2.3 of Nextcloud and I’m using Apache and the installation is in /var/www/html/nextcloud
After upgrading to the latest version I’ve got these two warnings on this page
https://server/nextcloud/index.php/settings/admin/overview
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”
I tried adding the following to .htaccess but it didn’t help
RewriteRule ^.well-known/webfinger /index.php/.well-known/webfinger [R=301,L]
RewriteRule ^.well-known/nodeinfo /index.php/.well-known/nodeinfo [R=301,L]
Those two lines comes right after these two lines
RewriteRule ^.well-known/carddav /remote.php/dav/ [R=301,L]
RewriteRule ^.well-known/caldav /remote.php/dav/ [R=301,L]
and those work fine.
Anybody knows what’s wrong here?
Try to put in your .htaccess this line :
RewriteEngine on
RewriteRule ^\.well-known/carddav /Your_NEXTCLOUD_Directory/remote.php/dav [R=301,L]
RewriteRule ^\.well-known/caldav /Your_NEXTCLOUD_Directory/remote.php/dav [R=301,L]
RewriteRule ^\.well-known/nodeinfo /Your_NEXTCLOUD_Directory/index.php/.well-known/nodeinfo [R=301,L]
RewriteRule ^\.well-known/webfinger /Your_NEXTCLOUD_Directory/index.php/.well-known/webfinger [R=301,L]
Thanks for the suggestion. I changed the lines to
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/nodeinfo /nextcloud/index.php/.well-known/nodeinfo [R=301,L]
RewriteRule ^.well-known/webfinger /nextcloud/index.php/.well-known/webfinger [R=301,L]
But I still get the same warnings about nodeinfo and webfinger. No warnings about carddav or caldav
Do you have the correct rights on your web folder ?
Can you try this ?
chown -R nginx:nginx /WEB
find /folder_path -type d -exec chmod 755 {} ;
find /folder_path -type f -exec chmod 644 {} ;
Dont forget to replace nginx with your web_user (apache, …)
I do believe that access rights are correct. In /var/www/html I have the nextcloud folder with these rights
drwxr-xr-x. 14 apache apache 4096 Feb 1 16:51 nextcloud
within that folder everything is owned by the apache user. Both index.php and remote.php have these access rights
-rw-r–r–. 1 apache apache