Nextcloud 21 with Apache and Nginx reverse proxy - webfinder, nodeinfo

after upgrading from Nextcloud 20 to 21, besides others, the following warnings appeared in settings:

I googled of course and found several solutions, but none of them seemed to be useful for me.
My server is running Plesk and those are my additional apache2 instructions:

RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L]
RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]
RewriteRule ^\.well-known/webfinger /public.php?service=webfinger [QSA,L]
RewriteRule ^\.well-known/carddav /remote.php/dav/ [R=301,L]
RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L]

My Nextcloud is also running behind an Nginx reverse proxy with the following instructions:

rewrite ^/\.well-known/host-meta /public.php?service=host-meta last;
rewrite ^/\.well-known/host-meta\.json /public.php?service=host-meta-json last;
rewrite ^/\.well-known/webfinger /public.php?service=webfinger last;
rewrite ^/\.well-known/carddav /remote.php/dav/ permanent;
rewrite ^/\.well-known/caldav /remote.php/dav/ permanent;

This worked for a few NC major releases now.

What do I have to change to get rid of the warnings?


I do have the same setup and problem.

I had the same problem, but now is solved. I simply did delete all “additional nginx directives” in Plesk and now there are no errors.