[Docker + Traefik Reverse Proxy + Subdirectory + NextCloud]-Configuration Problems

After I get the container up and running with “docker compose up -d” I add the file “rpsubdir.config.php” to the /var/www/html/config-Folder with following content:

<?php $CONFIG = array ( "overwritehost" => "example.com", "overwriteprotocol" => "http", "overwritewebroot" => "/subfolder", 'overwrite.cli.url' => 'http://example.com/subfolder', 'htaccess.RewriteBase' => '/subfolder', 'proxy' => 'http://example.com', );

My problem:

unless I type

https://example.com/subfolder/index.php” I will not be able to complete the setup since he is always trying to jump back to “http://example.com/index.php” afterwards. Why is that?

When the installation is finished he loads the directory overview with a big white window in the middle saying “content can not be shown”(I guess a banner or logo?) and if I try to navigate somewhere I always get an error since he is changing the path to something like “https://example.com/subfolder/apps/…” if I write it then like this “https://example.com/subfolder/index.php/apps/…” it sort of works…

I have this container running on a QNAP NAS with Traefik as reverse proxy in front of Nextcloud and https enforced with SSL handled by the proxy.

Thanks in advance!

1 Like

Same problem to me!
Any help please?

same problem here, any advice ?