Nextcloud version 15.0.2:
Operating system and version Ubuntu 18.04:
Apache or nginx version Apache 2.4.29:
PHP version 7.2:
Issue:
Since I first installed NC in a subfolder, everytime I access it (like domain.com/cloud) I get alot of errors in my apache2/error.log everytime the NC gets accessed:
[Fri Jan 18 15:21:51.598200 2019] [authz_core:error] [pid 3878:tid 547769057696] [client *.*.*.*:34944] AH01630: client denied by server configuration: /var/www/html/apps
[Fri Jan 18 15:21:51.598201 2019] [authz_core:error] [pid 3878:tid 547710308768] [client *.*.*.*:34944] AH01630: client denied by server configuration: /var/www/html/dav
[Fri Jan 18 15:21:52.108127 2019] [authz_core:error] [pid 3878:tid 547710308768] [client *.*.*.*:34944] AH01630: client denied by server configuration: /var/www/html/apps
[Fri Jan 18 15:21:53.823658 2019] [authz_core:error] [pid 3878:tid 547710308768] [client *.*.*.*:34944] AH01630: client denied by server configuration: /var/www/html/webdav
My apache site conf for *:443 looks like this:
Alias /cloud "/media/DATA/cloud/Nextcloud"
<Directory /media/DATA/cloud/Nextcloud>
Options +FollowSymLinks
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /media/DATA/cloud/Nextcloud
SetEnv HTTP_HOME /media/DATA/cloud/Nextcloud
</Directory>
Redirect to https is done with in the VirtualHost *:80
Redirect permanent / https://domain.com/
Access to /var/www/html is denied in the apache.conf itself so domain.com is not valid
So for some reason the browser (Firefox 64, haven’t tested others) is trying to access domain.com/apps etc. instead of domain.com/cloud/apps which get’s denied as those folders don’t exist.
Steps to replicate it:
- Setup NC in a folder that is not the webroot
- Configure apache with an alias as shown above
- Access NC and look at the log
Nextcloud log is empty
The output of config.php:
<?php
$CONFIG = array (
'instanceid' => '*',
'passwordsalt' => '*',
'secret' => '*',
'trusted_domains' =>
array (
0 => '*',
),
'datadirectory' => '/media/DATA/data/Cloud',
'dbtype' => 'mysql',
'version' => '15.0.2.0',
'dbname' => '*',
'dbhost' => '*',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nc',
'dbpassword' => '*',
'installed' => true,
'memcache.local' => '\OC\Memcache\APCu',
'overwrite.cli.url' => 'https://domain.com/cloud',
'htaccess.RewriteBase' => '/cloud',
);
Thanks in advance