Steps to reproduce
1. Normal installation of owncloud 9.1 on Debian. I created two conf files in the sites-available directory of apache: one for my subdomain and one for the main domain.
Expected behaviour
The user should access the cloud webpage through the subdomain.
Actual behaviour
The subdomain redirects to the main domain.
Server configuration
Operating system: debian 8.7
Web server: 2.4.10-10+de
Database: mariadb-server 10.1.21+mari
PHP version: php5 5.6.29+dfsg-
owncloud: 9.1.3-1.1
Special configuration (external storage, external authentication,
reverse proxy, server-side-encryption):
external storage, external authentifcation and server-side-encryption
enable
Comment
On my former server, owncloud was in a folder which name was sub.domain.ltd. It used to work. Now, I install on my new server and the subdomain redirects to the main domain.
My config:
<?php
$CONFIG = array (
'updatechecker' => false,
'instanceid' => 'octg8xzbc7wj',
'passwordsalt' => 'EBsyvBmoxXbsVhFW/7DJ+yVhGmq+Hd',
'secret' => 'ZFxLuWUkRGHopiLXQPMqAQHTFAYxinx0fu3rIwQcD1/0c5Cg',
'trusted_domains' =>
array (
0 => 'IP',
1 = > 'cloud.domain.ltd',
),
'datadirectory' => '/var/www/owncloud/data',
#'overwrite.cli.url' => 'http://IP/owncloud',
'overwrite.cli.url' => 'http://cloud.domain.ltd',
'dbtype' => 'mysql',
'version' => '9.1.3.1',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_tchokapix1',
'dbpassword' => 'RFy5/vX0GUpctdx8RMZ5s2/zp75/QN',
'logtimezone' => 'UTC',
'installed' => true,
);
If I tell the config.php to overwrite the ip of the localhost, I can access my cloud throught the following address: http://IP/owncloud.
The two apaches configuration files show Documentroot (cloud.domain.ltd.conf points to the folder of my cloud and domain.ltd.conf points to the folder of my blog).