Reverse Proxy display issue

Hi,

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 :

    <?php
$CONFIG = array (
  'overwritehost' => 'www.mysite.com',
  'trustedproxies' => '10.44.0.191',
  '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
        ServerName www.mysite.com

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

        Options +FollowSymlinks

</VirtualHost>

and here the reverse proxy config (ip 10.44.0.191) :

<VirtualHost *:80>
    ServerName www.mysite.com

    RewriteEngine On
    ProxyPass / http://10.44.0.150
    ProxyPassReverse / http://10.44.0.150
    ProxyRequests Off
    ProxyPreserveHost On

</VirtualHost>

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

Any help would be really appreciated,

Proc.

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.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.