/.well-known/webfinger

did some test using a subfolder for the installation of nextcloud, can confirm it works.

I just had to put generate a .htaccess file at the root of the webfolder:

RewriteEngine on
RewriteRule ^\.well-known/webfinger https://test.pontapreta.net/nextcloud/public.php?service=webfinger [QSA,L]

It is not the cleanest solution as it does some redirection and this should be hidden with some proxy stuff, but it works™

For those using nginx try this in /sites-available/…
location = /.well-known/webfinger {
rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
}

1 Like

Hello all,

I am getting this error and I’ve tried the following settings below but still failing. Could it be because I’m using self-signed certificate?

RewriteRule ^.well-known/webfinger /nextcloud/public.php?service=webfinger [QSA,L]
RewriteRule ^.well-known/webfinger https://${SERVER_NAME}/public.php?service=webfinger [QSA,L]

here’s part of my httpd.conf setting:
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
Satisfy Any
Require all granted

Dav off

SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud

that is also my problem.

carddav and caldav work fine

this is my nginx config:

  location = /.well-known/webfinger {
      rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
  }
  location = /.well-known/carddav {
      return 301 /remote.php/dav;
  }
  location = /.well-known/caldav {
      return 301 /remote.php/dav;
  }
  location / {
      include                     snippets.d/proxy_generic;
      proxy_pass                  http://10.77.77.106:8082;
  }

I have also this problem :
Using Nginx with no problems on Cardav and Caldav :

 location = /.well-known/webfinger {
      rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
  }

hope someone can give us clues

I have a similar problem as well
But when I put that into .htaccess in my cloud (nextcloud) subfolder it broke my nextcloud so I had to do a reinstall of it
Now I’m back at the start also when I click on the menu it doesn’t show anything eg user, settings

I’m running nextcloud 19.0.1 on ubuntu 20.04 with apache and php 7.4
Some photos