.well-known/host-meta.json returns 404

Nextcloud version (eg, 15.0.2): 15.0.2
Operating system and version (eg, Ubuntu 17.04): Debian GNU/Linux 8 (jessie)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.10 (Debian)
PHP version (eg, 7.1): PHP 7.0.33

GET .well-known/host-meta.json returns 404.

The .htaccess rewrite works. The requests ends in public.php at these lines:

   $file = \OC::$server->getConfig()->getAppValue('core', 'public_' . strip_tags($service));
    if ($file === '') {

$service has value “host-meta”. Code runs into the if branch.

Do I miss any additional configuration?

We are using caldav since ages, but now the first iPhone appeared in our environment and I am not able to sync the calendars.


The command line equivalent for

\OC::$server->getConfig()->getAppValue(‘core’, ‘public_’ . strip…


sudo -u www-data php occ config:app:get core public_host-meta

which in fact returns nothing. I’ve read about the social app, some people solved similar problems by installing the app without understanding what happened here. So I’ve installed the social app, which does nothing. Then I added a user (just clicking to the apps icon adds the current user). Now

sudo -u www-data php occ config:app:get core public_host-meta

returns a value (social/lib/hostmeta.php).

So basically in the default setup it is ok for host-meta to return nothing. Did not know that before.