I’m having a quite odd issue, which i have a work around for but i suspect its a bug.
I’ve downloaded the Latest NextCloud Appliance and its running 11.0.2.
I then have a Reverse Proxy setup using an IIS server and everything works as expected, with the exception of a couple of Images.
I followed the instructions from here (https://docs.nextcloud.com/server/11/admin_manual/configuration_server/reverse_proxy_configuration.html) and there were no odd surprises or anything to me.
The images that are not correct are:
- Top right menu bar
- Under the Personal area, the Get Apps images
- Under the Admin section, The ones under the License AGPL note.
They are redirecting to https ://nextcloud.domain.com/settings/img/help.svg?v=0… or https ://nextcloud.domain.com/core/img/googleplay.png
The correct redirection should be https ://nextcloud.domain.com/nextcloud/settings/img/help.svg?v=0… or https: //nextcloud.domain.com/nextcloud/core/img/googleplay.png
I can simply create a rule that rewrites/redirects those to the correct locations, but i’m wondering if there might be a bug for these few images? All other images/pages are being redirected correctly.
I’ve tried adding a trailing slash to the overwrite webroot and client url without success.
Config.php
'trusted_proxies' => array ( 0 => 'localhost', 1 => '192.168.x.y', 2 => 'rproxysvr', 3 => 'rproxysvr.int.domain.com', ), 'overwritehost' => 'nextcloud.domain.com', 'overwriteprotocol' => 'https', 'overwritewebroot' => '/nextcloud', 'overwritecondaddr' => '^192\.168\.x\.y$', 'overwrite.cli.url' => 'https://nextcloud.domain.com/nextcloud/',
for my IIS server, here’s my web.config file
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="ReverseProxyInboundRule1" stopProcessing="true"> <match url="(.*)" /> <action type="Rewrite" url="http://192.168.x.y/{R:1}" /> </rule> </rules> </rewrite> </system.webServer> </configuration>