Nextcloud version 17.0.1.
Operating system gentoo amd64:
Apache 2.4.41.
PHP version 7.3.
Many errors in apache logs, when connecting by client with using token.
Regardless of erros in apache logs - sync work.
If i right understand apache logs, client make request, somehow request changing - url from “/nextcloud/remote.php/dav/files/Nemos/” transform to “/dav/files/Nemos/”, and apache configs denied access by this url (location) for nextcloud user with nextcloud token.
I have similar problem with nextcloud talk: url tranform from “nextcloud/ocs/v2.php/apps/spreed/api/v1/room” to “/apps/spreed/api/v1/room”.
Steps to replicate it:
- Install nextcloud on server, where only nextcloud subfolder do not use apache autorization.
- Connect by client to server with using token.
No errors log in nextcloud.
apache config (for nextcloud)
<Directory "/var/www/nemosweb/htdocs/nextcloud/">
Require all granted
Options FollowSymlinks MultiViews
AllowOverride All
SetEnv HOME /var/www/nemosweb/htdocs/nextcloud/
SetEnv HTTP_HOME /var/www/nemosweb/htdocs/nextcloud/
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav
Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
config.php
<?php
$CONFIG = array (
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'nemosweb.*.*',
),
'datadirectory' => '/var/www/nemosweb/htdocs/nextcloud/data',
'dbtype' => 'mysql',
'version' => '17.0.1.1',
'overwrite.cli.url' => 'https://localhost/nextcloud',
'overwritewebroot' => '/nextcloud',
'htaccess.RewriteBase' => '/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud_server',
'dbpassword' => '',
'installed' => true,
'integrity.check.disabled' => true,
'maintenance' => false,
'updater.release.channel' => 'stable',
'theme' => '',
'loglevel' => 2,
);
from apache ssl_error_log
[Fri Nov 22 13:59:43.073575 2019] [auth_basic:error] [pid 7291:tid 140503941113600] [client *.*.*.*:56396] AH01618: user Nemos not found: /dav/files/Nemos/
from apache ssl_access_log
*.*.*.* - Nemos [22/Nov/2019:13:59:43 +0300] "PROPFIND /nextcloud/remote.php/dav/files/Nemos/ HTTP/1.1" 207 382