Containerized Nextcloud16 with Apache ProxyPass

Nextcloud version (eg, 12.0.2): 16.0.1-1
Operating system and version (eg, Ubuntu 17.04): Archlinux
Apache or nginx version (eg, Apache 2.4.25): 2.4.39-1
PHP version (eg, 7.1): 7.3.6

The issue you are facing:
Nextcloud instance is accessible from ProxyPass on a different webserver. When accessed directly the main “All Files” page loads correctly. When accessed via the Proxy, the same page loads with the error “This directory is unavailable, please check the logs or contact the administrator”
These folders are chownd http:http , are accessible as the http user, and are mounted from a remote nfs share.

Is this the first time you’ve seen this error? (Y/N): Y

The output of your Nextcloud log in Admin > Logging:

{"reqId":"bZWMifaReJIS0L33UR0t","level":3,"time":"2019-06-24T15:48:57+00:00","remoteAddr":"172.19.3.114","user":"will","app":"remote","method":"PROPFIND","url":"\/nextcloud\/remote.phpp\/dav\/files\/will\/","message":{"Exception":"Sabre\\DAV\\Exception\\Forbidden","Message":"Requested uri (\/nextcloud\/remote.phpp\/dav\/files\/will\/) is out of base uri (\/nextcloud\/remote.php\/dav\/)","Code":0,"Trace":[{"file":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":549,"function":"calculateUri","class":"Sabre\\DAV\\Server","type":"->","args":["\/nextcloud\/remote.phpp\/dav\/files\/will\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":322,"function":"getRequestUri","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":148,"function":"requestIsForSubtree","class":"OCA\\DAV\\Server","type":"->","args":[["calendars","public-calendars","system-calendars","principals"]]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":34,"function":"__construct","class":"OCA\\DAV\\Server","type":"->","args":[{"__class__":"OC\\AppFramework\\Http\\Request"},"\/nextcloud\/remote.php\/dav\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/remote.php","line":163,"args":["\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","Line":588,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:67.0) Gecko\/20100101 Firefox\/67.0","version":"16.0.1.1"}
{"reqId":"npe0g9KPNSz6jFkR6oJg","level":3,"time":"2019-06-24T16:12:20+00:00","remoteAddr":"172.19.3.114","user":"will","app":"remote","method":"PROPFIND","url":"\/nextcloud\/remote.phpp\/dav\/files\/will\/","message":{"Exception":"Sabre\\DAV\\Exception\\Forbidden","Message":"Requested uri (\/nextcloud\/remote.phpp\/dav\/files\/will\/) is out of base uri (\/nextcloud\/remote.php\/dav\/)","Code":0,"Trace":[{"file":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":549,"function":"calculateUri","class":"Sabre\\DAV\\Server","type":"->","args":["\/nextcloud\/remote.phpp\/dav\/files\/will\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":322,"function":"getRequestUri","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":148,"function":"requestIsForSubtree","class":"OCA\\DAV\\Server","type":"->","args":[["calendars","public-calendars","system-calendars","principals"]]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":34,"function":"__construct","class":"OCA\\DAV\\Server","type":"->","args":[{"__class__":"OC\\AppFramework\\Http\\Request"},"\/nextcloud\/remote.php\/dav\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/remote.php","line":163,"args":["\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","Line":588,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:67.0) Gecko\/20100101 Firefox\/67.0","version":"16.0.1.1"}
{"reqId":"xjZswzh28vUrqI5uuyPc","level":3,"time":"2019-06-24T17:38:58+00:00","remoteAddr":"172.19.3.114","user":"will","app":"remote","method":"PROPFIND","url":"\/nextcloud\/remote.phpp\/dav\/files\/will\/","message":{"Exception":"Sabre\\DAV\\Exception\\Forbidden","Message":"Requested uri (\/nextcloud\/remote.phpp\/dav\/files\/will\/) is out of base uri (\/nextcloud\/remote.php\/dav\/)","Code":0,"Trace":[{"file":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":549,"function":"calculateUri","class":"Sabre\\DAV\\Server","type":"->","args":["\/nextcloud\/remote.phpp\/dav\/files\/will\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":322,"function":"getRequestUri","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":148,"function":"requestIsForSubtree","class":"OCA\\DAV\\Server","type":"->","args":[["calendars","public-calendars","system-calendars","principals"]]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":34,"function":"__construct","class":"OCA\\DAV\\Server","type":"->","args":[{"__class__":"OC\\AppFramework\\Http\\Request"},"\/nextcloud\/remote.php\/dav\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/remote.php","line":163,"args":["\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","Line":588,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:67.0) Gecko\/20100101 Firefox\/67.0","version":"16.0.1.1"}
{"reqId":"9uIPqk1Hrh4PaG5yoNk9","level":3,"time":"2019-06-24T17:39:22+00:00","remoteAddr":"172.19.3.114","user":"will","app":"remote","method":"PROPFIND","url":"\/nextcloud\/remote.phpp\/dav\/files\/will\/","message":{"Exception":"Sabre\\DAV\\Exception\\Forbidden","Message":"Requested uri (\/nextcloud\/remote.phpp\/dav\/files\/will\/) is out of base uri (\/nextcloud\/remote.php\/dav\/)","Code":0,"Trace":[{"file":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":549,"function":"calculateUri","class":"Sabre\\DAV\\Server","type":"->","args":["\/nextcloud\/remote.phpp\/dav\/files\/will\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":322,"function":"getRequestUri","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":148,"function":"requestIsForSubtree","class":"OCA\\DAV\\Server","type":"->","args":[["calendars","public-calendars","system-calendars","principals"]]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":34,"function":"__construct","class":"OCA\\DAV\\Server","type":"->","args":[{"__class__":"OC\\AppFramework\\Http\\Request"},"\/nextcloud\/remote.php\/dav\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/remote.php","line":163,"args":["\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","Line":588,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Android 8.1.0; Mobile; rv:67.0) Gecko\/67.0 Firefox\/67.0","version":"16.0.1.1"}
{"reqId":"P6V5qtMGD7cduD3nu0m1","level":3,"time":"2019-06-24T17:41:44+00:00","remoteAddr":"172.19.3.114","user":"will","app":"remote","method":"PROPFIND","url":"\/nextcloud\/remote.phpp\/dav\/files\/will\/","message":{"Exception":"Sabre\\DAV\\Exception\\Forbidden","Message":"Requested uri (\/nextcloud\/remote.phpp\/dav\/files\/will\/) is out of base uri (\/nextcloud\/remote.php\/dav\/)","Code":0,"Trace":[{"file":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":549,"function":"calculateUri","class":"Sabre\\DAV\\Server","type":"->","args":["\/nextcloud\/remote.phpp\/dav\/files\/will\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":322,"function":"getRequestUri","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":148,"function":"requestIsForSubtree","class":"OCA\\DAV\\Server","type":"->","args":[["calendars","public-calendars","system-calendars","principals"]]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":34,"function":"__construct","class":"OCA\\DAV\\Server","type":"->","args":[{"__class__":"OC\\AppFramework\\Http\\Request"},"\/nextcloud\/remote.php\/dav\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/remote.php","line":163,"args":["\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","Line":588,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:67.0) Gecko\/20100101 Firefox\/67.0","version":"16.0.1.1"}
{"reqId":"fuVse8EHa4hFhbo5oz0n","level":3,"time":"2019-06-24T17:47:46+00:00","remoteAddr":"172.19.3.114","user":"will","app":"remote","method":"PROPFIND","url":"\/nextcloud\/remote.phpp\/dav\/files\/will\/","message":{"Exception":"Sabre\\DAV\\Exception\\Forbidden","Message":"Requested uri (\/nextcloud\/remote.phpp\/dav\/files\/will\/) is out of base uri (\/nextcloud\/remote.php\/dav\/)","Code":0,"Trace":[{"file":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":549,"function":"calculateUri","class":"Sabre\\DAV\\Server","type":"->","args":["\/nextcloud\/remote.phpp\/dav\/files\/will\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":322,"function":"getRequestUri","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/lib\/Server.php","line":148,"function":"requestIsForSubtree","class":"OCA\\DAV\\Server","type":"->","args":[["calendars","public-calendars","system-calendars","principals"]]},{"file":"\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":34,"function":"__construct","class":"OCA\\DAV\\Server","type":"->","args":[{"__class__":"OC\\AppFramework\\Http\\Request"},"\/nextcloud\/remote.php\/dav\/"]},{"file":"\/usr\/share\/webapps\/nextcloud\/remote.php","line":163,"args":["\/usr\/share\/webapps\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/usr\/share\/webapps\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","Line":588,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:67.0) Gecko\/20100101 Firefox\/67.0","version":"16.0.1.1"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'ocxl9navxbpq',
  'passwordsalt' => 'VgxEk+h72zZlbo6Eej1CQIjEMr4ETx',
  'secret' => 'ccOjPL0NL++pMtWmC1/3P1HGIeacuJuWImkVLYzn1MPTmXL9',
  'trusted_domains' => 
  array (
    0 => 'internal.fqdn.org',
  ),
  'datadirectory' => '/usr/share/webapps/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '16.0.1.1',
  'overwrite.cli.url' => 'http://internal.fqdn.org',
  'dbname' => 'nextcloud',
  'dbhost' => 'internaldbsrv.fqdn.org:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '$ecret',
  'installed' => true,
  'overwritewebroot' => '/nextcloud',
);

ummm after accidentially posting your instance-id. passwordsalt and secret you should consider your server as being compromized, i’m afraid.

thats ok. I havnt actually got to using it yet. a fresh install is trivial. with that being said, there is no list in the default template as to what needs ti be anonymized.