I am using apache as a reverse proxy.
The apache configuration looks like this:
<VirtualHost *:80>
servername drive.xyz.com
ProxyPass / http://192.168.0.10/
ProxyPassReverse / http://192.168.0.10/
<VirtualHost>
Owncloud server is in the same subnet as the proxy server.
Owncloud configuration file looks like this:
<?php
$CONFIG = array (
'passwordsalt' => 'xxxxxxx',
'secret' => 'xxxxxxxx’',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'drive.xyz.com',
2 => '192.168.0.10'
),
'datadirectory' => '/usr/share/owncloud/data',
'overwrite.cli.url' => 'http://localhost',
'dbtype' => 'mysql',
'version' => '10.0.10.4',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'owncloud',
'dbpassword' => 'xxxxxxxx',
'logtimezone' => 'UTC',
'installed' => true,
'instanceid' => 'xxxxxxx',
);
When I open https://drive.xyz.com it redirects to https://192.168.0.10.
Any suggestion?