Want to serve owncloud over nginx as a proxy pass while running on apache2

Expected behaviour

Logout to work

Actual behaviour

Logout will go to http://127.0.0.1:8111

Server configuration

Operating system: Ubuntu 18.04
Database: pgsql

ownCloud version: 10.4.1

The content of config/config.php:

<?php
$CONFIG = array (
  'passwordsalt' => 'salt+R6S0',
  'secret' => 'secret',
  'trusted_domains' =>
  array (
    1 => 'truested.com',
    2 => 'localhost',
  ),
  'datadirectory' => '/var/www/html/owncloud/data',
  'overwrite.cli.url' => 'https://trusted/owncloud',
  'dbtype' => 'pgsql',
  'version' => '10.4.1.3',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_ciprian@truested.com',
  'dbpassword' => 'dbpass',
  'logtimezone' => 'UTC',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/owncloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/owncloud/apps-external',
      'url' => '/apps-external',
      'writable' => true,
    ),
  ),
  'installed' => true,
  'instanceid' => 'id',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '127.0.0.1',
    'port' => '6379',
  ),
);

Content of default apache2 host:

<VirtualHost *:8111>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/owncloud

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

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

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

Content of nginx:

location = /owncloud {
    rewrite ^ /owncloud/;
}

location /owncloud/ {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Protocol $scheme;
        proxy_pass http://127.0.0.1:8111;
        proxy_set_header X-Host $http_host;
}

I also have 404 on the console like:

https://trusted.com/index.php/apps/files/ 404 (Not Found)

Also … the wizard content is:

This content failed to load.

And in General tab I’m having:

We recommend to enable system cron as any other cron method has possible performance and reliability implications.
The "X-XSS-Protection" HTTP header is not configured to equal to "1; mode=block". This is a potential security or privacy risk and we recommend adjusting this setting.
The "X-Content-Type-Options" HTTP header is not configured to equal to "nosniff". This is a potential security or privacy risk and we recommend adjusting this setting.
The "X-Frame-Options" HTTP header is not configured to equal to "SAMEORIGIN". This is a potential security or privacy risk and we recommend adjusting this setting.
The "X-Download-Options" HTTP header is not configured to equal to "noopen". This is a potential security or privacy risk and we recommend adjusting this setting.
The "X-Permitted-Cross-Domain-Policies" HTTP header is not configured to equal to "none". This is a potential security or privacy risk and we recommend adjusting this setting.
The "Strict-Transport-Security" HTTP header is not configured to at least "15552000" seconds. For enhanced security we recommend enabling HSTS as described in our security tips.

I installed it from here: https://doc.owncloud.com/server/admin_manual/installation/ubuntu_18_04.html

Hey,

i have found the following documentation by entering “Proxy” in the search box on https://doc.owncloud.org/server/10.4/:

https://doc.owncloud.com/server/admin_manual/configuration/server/reverse_proxy_configuration.html

Maybe this documentation helps you to find the required Proxy configuration?

I have also done the following search:

https://central.owncloud.org/search?q=proxy%20logout%20order%3Alatest

and found an older topic about a different logout link:

1 Like