Apache reverse proxy pointing to an internal IPaddress

I am using apache as a reverse proxy.

The apache configuration looks like this:

<VirtualHost *:80>

servername drive.xyz.com

ProxyPass /

ProxyPassReverse /


Owncloud server is in the same subnet as the proxy server.

Owncloud configuration file looks like this:


$CONFIG = array (

'passwordsalt' => 'xxxxxxx',

'secret' => 'xxxxxxxx&rsquo;',

'trusted_domains' =>

array (

0 => 'localhost',

1 => 'drive.xyz.com',

2 => ''


'datadirectory' => '/usr/share/owncloud/data',

'overwrite.cli.url' => 'http://localhost',

'dbtype' => 'mysql',

'version' => '',

'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

Any suggestion?


i can remember to have seen some notes or hints on reverse proxy configurations at the ownCloud documentation. Unfortunately it seems that the documentation page doesn’t have a search field but maybe you can find something over there when clicking a little bit around:


Unfortunately the example in the documentation in chapter Reverse Proxy Configuration doesn’t help much.