Trusted domains not working

Hi all,

Trying to add trusted domains and not having much luck. I have altered the config file several times and restarted but no matter what I try I cannot get anything but the local ip to work. Anyone have any ideas what I a missing?

A working trusted array looks like this:

'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '',
    5 => 'my.domain.tld',

Reload web service or reboot after making changes.

You 'll have to be more specific and share some of your config, for anyone to see if and what is missing or going wrong!

My array looks similar to this

   'trusted_domains' => 
      array (
        0 => '',
        1 => 'nextcloud.example.local',
        2 => '',

I am editing this file ‘/var/lib/univention-appcenter/apps/nextcloud/conf/config/config.php’ and then run a sudo service apache2 restart

I am only able to get to the login screen using the local IP ‘’