NC 15 "Non Trusted Domain Error" behind Docker bridge and Apache vHost

Hello dear nextcloudies all,

i try to get access to my home nextcloud docker image with https and Letsencrypt Certs. Prior configuring the Apache vHost Def for the nextcloud docker image all works fine, for ex. https://.de. After this i set the vHost definition:


ProxyPassMatch (.*)(/websocket)$ “ws://$1$2”
ProxyPass / “
ProxyPassReverse / “>/”

LogLevel debug
Errorlog ${APACHE_LOG_DIR}/nextcloud-error.log
CustomLog ${APACHE_LOG_DIR}/nextcloud-access.log combined

SSLCertificateFile /etc/letsencrypt/live/nextcloud.fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nextcloud.privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf

Now, the “famous” Non-Trusted-Domain-Error occurs and the nextcloud Log tells me:

… “remoteAddr”:“”,“user”:"–",“app”,“core” … "Trusted domain error. “” tried to access using “” as host. …

What this means? is the IP from my docker bridge. What should i set in the config/config.php
or for the occ trusted_domains setting?

Solution for this mistake in config.php

‘trusted_proxies’ => [‘’],
‘trusted_domains’ => ‘FQDN’,
‘overwritecondaddr’ => ‘^$’,

and all works fine!