Nextcloud Android App doesn't work with reverse Proxy

Thanks to this forum post I was able to find the error. The complete correct configurations can be found in the post

changes on apache at server 1 (reverse Proxy)

Old version

.
.
.
       ProxyPass / https://Server2.IP.*.*/nextcloud
       ProxyPassReverse / https://Server2.IP.*.*/nextcloud
.
.
.

new version

.
.
.
        ProxyPass / https://Server2.IP.*.*/
        ProxyPassReverse / https://Server2.IP.*.*/
.
.
.
changes on apache at server 2.

Old version

<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName *.*.*.eu
ServerAlias Server1.IP.*.*
        DocumentRoot /var/www/

.
.
.

new version

<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName *.*.*.eu
ServerAlias Server1.IP.*.*
        DocumentRoot /var/www/nextcloud/

.
.
.
changes in config.php

old

.
.
.
  'overwrite.cli.url' => 'https://localhost/',
  'htaccess.RewriteBase' => '/nextcloud',
  'overwritewebroot' => '/',
.
.
.
.
.
.
  'overwrite.cli.url' => 'https://localhost/',
  'htaccess.RewriteBase' => '/',
  'overwritewebroot' => '/',
.
.
.
2 Likes