Nextcloud Behind 2 reverse Proxies files section loading endlessly

Nextcloud version: 14.01 and 15.07
Operating system and version : Ubuntu 16.04
Apache or nginx version : Apache 2.4.37
PHP version: 7.0

The issue you are facing:

Till now our Nextcloud servers where behind 1 proxy server. And we did not had any issue with this. Now we had to put the proxy behind another one this way :
[New Proxy (Nginx)] --> [Old Proxy(Apache)] --> Nextcloud server.

But since we put this second proxy, when we want to access files, this section is loading endlessly. (grey circle turning).
All the interface is loaded, but we can’t see any file, only the grey circle turning.

Gallery, Talk, Activity and Settings are working without any issue.

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

Steps to replicate it:

  1. Build a Nextcloud server.
  2. Put behind a proxy.
  3. Put this proxy behind another one.

The output of your Nextcloud log in Admin > Logging:

PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_xmlrpc.dll'

It’s the only error we have. And it’s strange(or may be not) as we are on a linux machine.

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

<?php
$CONFIG = array (
  'instanceid' => 'octmougeT6hy',
  'passwordsalt' => '07TVoixNsEGvKjo4Esjfddgrg',
  'secret' => '1OcRIMWwfd6oBmnS+VvTjkbzOVbF6r5On5YgfdsfdqSFR/',
  'trusted_domains' =>
  array (
    0 => 'share.domain.com',
  ),
  'datadirectory' => '/home/nextcloud-data/',
  'overwrite.cli.url' => 'http://share.domain.com',
  'dbtype' => 'mysql',
  'version' => '14.0.1.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin2',
  'dbpassword' => 'L2UtYGuUzkaS0TJo8Ff+sdfdsfsd',
  'installed' => true,
  'trusted_proxies' =>
  array (
    0 => '10.0.0.1', 1 => '149.65.145.164',
  ),
  'overwritehost' => 'share.domain.com',
  'overwriteprotocol' => 'https',
  'overwritewebroot' => '/',
  'overwritecondaddr' => '^10\\.0\\.0\\.1$',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_from_address' => 'noreply',
  'mail_domain' => 'contact-gk.fr',
  'mail_smtphost' => '127.0.0.1',
  'mail_smtpport' => '25',
  'allow_user_to_change_display_name' => true,
  'updater.release.channel' => 'stable',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache/nginx/system log in /var/log/____:
As I have no related error to this issue in error.log, I put and access.log while the files page is loading.

10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:56:07 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:56:37 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
^L10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:07 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:10 +0100] "GET /index.php/apps/files/ HTTP/1.1" 200 7790 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /core/vendor/core.js?v=b37837fd-23 HTTP/1.1" 200 281833 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /core/search/js/search.js?v=b37837fd-23 HTTP/1.1" 200 1411 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files_videoplayer/js/viewer.js?v=b37837fd-23 HTTP/1.1" 200 1631 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files_pdfviewer/js/previewplugin.js?v=b37837fd-23 HTTP/1.1" 200 1921 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /core/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 7840 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/firstrunwizard/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 2214 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/firstrunwizard/js/jquery.colorbox.js?v=b37837fd-23 HTTP/1.1" 200 8842 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/firstrunwizard/js/firstrunwizard.js?v=b37837fd-23 HTTP/1.1" 200 1137 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/gallery/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 2506 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /core/search/js/searchprovider.js?v=b37837fd-23 HTTP/1.1" 200 3630 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/notifications/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 494 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /core/js/jquery-ui-fixes.js?v=b37837fd-23 HTTP/1.1" 200 209 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/notifications/js/notifications.js?v=b37837fd-23 HTTP/1.1" 200 41115 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /core/js/files/fileinfo.js?v=b37837fd-23 HTTP/1.1" 200 883 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /core/js/files/client.js?v=b37837fd-23 HTTP/1.1" 200 5591 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /core/js/contactsmenu.js?v=b37837fd-23 HTTP/1.1" 200 3675 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 2543 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files_sharing/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 1632 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files_sharing/js/app.js?v=b37837fd-23 HTTP/1.1" 200 2042 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files_sharing/js/sharedfilelist.js?v=b37837fd-23 HTTP/1.1" 200 4467 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files_trashbin/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 360 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files_trashbin/js/app.js?v=b37837fd-23 HTTP/1.1" 200 1137 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files_trashbin/js/filelist.js?v=b37837fd-23 HTTP/1.1" 200 3080 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/activity/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 1248 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /core/js/oc-backbone-webdav.js?v=b37837fd-23 HTTP/1.1" 200 3018 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/comments/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 593 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/federatedfilesharing/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 1243 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/federatedfilesharing/js/external.js?v=b37837fd-23 HTTP/1.1" 200 1776 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files_texteditor/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 807 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files_versions/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 241 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/systemtags/l10n/en_GB.js?v=b37837fd-23 HTTP/1.1" 200 723 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /apps/files/img/app.svg?v=b37837fd HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /index.php/svg/core/actions/star-dark/000?v=2 HTTP/1.1" 200 207 "https://share.domain.com/index.php/css/files/d16b-ccf5-merged.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /index.php/svg/core/actions/more/fff?v=1 HTTP/1.1" 200 227 "https://share.domain.com/index.php/css/core/c064-ccf5-server.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /index.php/svg/core/actions/triangle-s/000?v=1 HTTP/1.1" 200 145 "https://share.domain.com/index.php/css/core/c064-ccf5-server.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /index.php/svg/files/public/000?v=1 HTTP/1.1" 200 942 "https://share.domain.com/index.php/css/files/d16b-ccf5-merged.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /index.php/apps/theming/js/theming?v=23 HTTP/1.1" 200 263 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:11 +0100] "GET /index.php/svg/files/share/000?v=1 HTTP/1.1" 200 326 "https://share.domain.com/index.php/css/files/d16b-ccf5-merged.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /apps/activity/img/activity.svg?v=b37837fd HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /apps/gallery/img/app.svg?v=b37837fd HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /index.php/svg/files/unshare/000?v=1 HTTP/1.1" 200 819 "https://share.domain.com/index.php/css/files/d16b-ccf5-merged.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /apps/spreed/img/app.svg?v=b37837fd HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /settings/img/admin.svg?v=b37837fd HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /settings/img/apps.svg?v=b37837fd HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /settings/img/users.svg?v=b37837fd HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /apps/firstrunwizard/img/info.svg?v=b37837fd HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /settings/img/help.svg?v=b37837fd HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /core/search/templates/part.results.html HTTP/1.1" 200 140 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /core/img/actions/logout.svg?v=b37837fd HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /core/img/actions/delete.svg HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /index.php/svg/systemtags/tag/000?v=1 HTTP/1.1" 200 474 "https://share.domain.com/index.php/css/systemtags/1bf6-ccf5-systemtagsfilelist.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /index.php/svg/core/actions/quota/000?v=1 HTTP/1.1" 200 273 "https://share.domain.com/index.php/css/core/c064-ccf5-server.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /index.php/svg/core/actions/settings-dark/000?v=1 HTTP/1.1" 200 1082 "https://share.domain.com/index.php/css/core/c064-ccf5-server.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /index.php/apps/gallery/config?extramediatypes=1 HTTP/1.1" 200 102 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /index.php/avatar/bellaichef/32?v=1 HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /index.php/svg/core/places/contacts/fff?v=1 HTTP/1.1" 200 868 "https://share.domain.com/index.php/css/core/c064-ccf5-server.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:13 +0100] "GET /apps/notifications/img/notifications.svg HTTP/1.1" 200 456 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /index.php/svg/files/folder/000?v=1 HTTP/1.1" 200 252 "https://share.domain.com/index.php/css/files/d16b-ccf5-merged.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /ocs/v2.php/core/whatsnew?format=json HTTP/1.1" 204 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:12 +0100] "GET /index.php/apps/systemtags/lastused HTTP/1.1" 200 2 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:13 +0100] "GET /index.php/svg/files/recent/000?v=1 HTTP/1.1" 200 301 "https://share.domain.com/index.php/css/files/d16b-ccf5-merged.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:13 +0100] "GET /index.php/svg/files/delete/000?v=1 HTTP/1.1" 200 259 "https://share.domain.com/index.php/css/files/d16b-ccf5-merged.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:13 +0100] "GET /index.php/svg/core/places/home/000?v=1 HTTP/1.1" 200 168 "https://share.domain.com/index.php/css/core/c064-ccf5-server.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:13 +0100] "GET /index.php/svg/core/actions/toggle-pictures/000?v=1 HTTP/1.1" 200 376 "https://share.domain.com/index.php/css/core/c064-ccf5-server.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.0.0.1 81.113.86.32 - - [18/Feb/2021:11:57:13 +0100] "GET /index.php/svg/core/actions/search/fff?v=1 HTTP/1.1" 200 237 "https://share.domain.com/index.php/css/core/c064-ccf5-server.css?v=951fe2301e09b58455ba1eb6fa1b5e3a?v=b37837fd-23" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
127.0.0.1 - - - [18/Feb/2021:11:57:20 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.37 (Ubuntu) OpenSSL/1.1.1b (internal dummy connection)"
127.0.0.1 - - - [18/Feb/2021:11:57:21 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.37 (Ubuntu) OpenSSL/1.1.1b (internal dummy connection)"
127.0.0.1 - - - [18/Feb/2021:11:57:22 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.37 (Ubuntu) OpenSSL/1.1.1b (internal dummy connection)"
127.0.0.1 - - - [18/Feb/2021:11:57:23 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.37 (Ubuntu) OpenSSL/1.1.1b (internal dummy connection)"
127.0.0.1 - - - [18/Feb/2021:11:57:24 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.37 (Ubuntu) OpenSSL/1.1.1b (internal dummy connection)"
127.0.0.1 - - - [18/Feb/2021:11:57:25 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.37 (Ubuntu) OpenSSL/1.1.1b (internal dummy connection)"
127.0.0.1 - - - [18/Feb/2021:11:57:26 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.37 (Ubuntu) OpenSSL/1.1.1b (internal dummy connection)"

Regarding a second proxy I would say why and don’t :wink:

But considering it works with just Apache I would think the issue is in the Nginx proxy configuration. Best to look into just using one proxy server if at all or troubleshoot that Nginx proxy config.

The php_xmlrpc.dll error seems unrelated but strange as on Linux based systems you do not have dll files but .so if I’m correct. Perhaps you applied configuration for a Windows based system on a Linux machine.

Hi,

The apache proxy is inside our corp net. To be sure that all services behind remain up, it has several Internet accesses, with several ISP on different technologies. The Nginx proxy is outside our network and manage the failover in case of one of the internet access in place fails.

If you have a solution that could avoid this build without loosing access, please share.

There about 30 services behind this solution. For now, only nextcloud is driving me crazy.
I’ll dig a little bit deeper in the Nginx, but what is disturbing me is that everything is working but the file display.

I think your guess is right, it’s may be an Nginx reverse proxy issue.

I have this in the logs :

access forbidden by rule, client: 111.111.111.111, server: share.domain.com, request: "PROPFIND /remote.php/dav/files/username/ 

This is my nginx config :

upstream share.domain.com {
        server 159.180.228.56;
}

server {
  server_name share.domain.com;

        location /.well-known/carddav {
            return 301 $scheme://$host/remote.php/dav;
        }

        location /.well-known/caldav {
            return 301 $scheme://$host/remote.php/dav;
        }

  location / {
        limit_except GET HEAD POST { deny all; }
        proxy_pass http://share.domain.com;
        proxy_set_header    Host $host;
        proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_connect_timeout 30;
        proxy_send_timeout 30;
    }


    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/share.domain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/share.domain.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}

server {
    if ($host = share.domain.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


  server_name share.domain.com;
    listen 80;
    return 404; # managed by Certbot


}

As I am novice on nginx may be I did someting wrong. But I do not see what.

Re-reading My last post, I found the solution :

Edit this line in Nginx config file :

and change this

limit_except GET HEAD POST { deny all; }

To this :

limit_except GET HEAD POST PROPFIND DELETE { deny all; }

And everyhting works.

Hope it’ll help someone else in the future.

Bye.