Well-known addresses in Raspberry Pi 2 with Raspbian

I’ve just setup a fresh install of Nextcloud 14.0.3 in a Raspberry Pi 2 powered by Raspbian. I’ve been following the steps I wrote myself as a tutorial in Spanish for older versions, but I’m stuck with one of the new warnings in Settings page. To be precise, I can’t setup the well-known addresses for CalDAV/CardDAV clients to work.

I have installed Nextcloud in a folder within the web root, i. e., in /var/www/html/nube.

So I created a .htaccess file in the root folder, var/www/html, as advised in the documentation. This file, `/var/www/html/.htaccess’ presents the following content:

Redirect 301 /.well-known/carddav /nube/remote.php/dav
Redirect 301 /.well-known/caldav /nube/remote.php/dav

When I restarted the Apache server, I saw there was a newly created hidden folder .well-known, but the warning in Settins page keeps appearing, so I’m not sure where’s my mistake.

Nextcloud version 14.0.3
Operating system and version: Raspbian 9 Stretch
Apache version: 2.4.25-3+deb9u5
PHP version :7.0.30-0+deb9u1
Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


$CONFIG = array (
  'instanceid' => 'XXXXXX',
  'passwordsalt' => 'XXXXXXX',
  'secret' => 'XXXXXXX',
  'trusted_domains' => 
  array (
    0 => '192.168.0.26',
    1 => 'polkillas.ddns.net',
  ),
  'datadirectory' => '/media/polkillas/nube',
  'dbtype' => 'mysql',
  'version' => '14.0.3.0',
  'overwrite.cli.url' => 'http://192.168.0.26/nube',
  'dbname' => 'XXXXXXX',
  'dbhost' => 'XXXXXXX',
  'dbport' => '',
  'dbtableprefix' => 'XXXXXXX',
  'dbuser' => 'XXXXXXX',
  'dbpassword' => 'XXXXXXX',
  'installed' => true,
  'htaccess.RewriteBase' => '/nube',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'polkillas.net',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => 'mail.polkillas.net',
  'mail_smtpport' => '587',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'XXXXXXX@polkillas.net',
  'mail_smtppassword' => 'XXXXXXX',
  'mail_from_address' => 'XXXXXXX',
);


The output of your Apache/nginx/system log in /var/log/____: These are the only lines about well-known:

XXXXXXX.145 - - [16/Oct/2018:18:42:37 +0200] "PROPFIND /.well-known/caldav HTTP/1.1" 405 844 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Fir$
XXXXXXX.145 - - [16/Oct/2018:18:42:37 +0200] "PROPFIND /.well-known/carddav HTTP/1.1" 405 845 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Fi$

it could be that you are not allowed to make these changes in your .htaccess. In your apache configuration you have to put AllowOverride All for your main webroot (/var/www/html)

I’ll try this when I can, it seems that could be the solution, but now I have a more urgent problem.

Thank you very much!