Reverse Proxy display issue


I’m trying to install Owncloud 13.04 behind my reverse proxy.
I already have several web services behind this server that work without any problem

**Direct access to the Ownlcoud is also done without any problem, but when I access it through the reverse proxy this is what I have:

No css, js… is applied.

So I looked at the doc to see if anything has to be done to make reverse proxied owncloud Ok, then I modifed my config.php to this :

$CONFIG = array (
  'overwritehost' => '',
  'trustedproxies' => '',
  'overwriteprotocol' => 'http',
  'overwritewebroot' => '/',
  'overwritecondaddr' => '^10\.44\.0\.191$', (tried wihtout backslashes too)
  'instanceid' => 'oca16toul8qg',

This is the VirtualHost Apache config :

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/nextcloud

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        Options +FollowSymlinks


and here the reverse proxy config (ip :

<VirtualHost *:80>

    RewriteEngine On
    ProxyPass /
    ProxyPassReverse /
    ProxyRequests Off
    ProxyPreserveHost On


I really don’t know what’s wrong with my config.

Any help would be really appreciated,


I would change the data folder out of /var/www, e.g. to /da/ta/

Thank you but I don’t think it’s related to my problem.

So I made it works, but it still very strange.

I strictly respected these steps:

  1. Activate reverse proxy only for HTTP (https disabled)
  2. Unzip in /var/www
  3. chown to www:data
  4. Launch Install
  5. Login with admin account
  6. Activate HTTPS on reverse proxy
    tune config.php to match reverse proxy settings.

Now everything works.