Apache reverse proxy pointing to an internal IPaddress


#1

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&rsquo;',

'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?


#2

Hey,

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:

https://doc.owncloud.org/server/administration_manual


#3

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