owncloud untrusted domain login screen fix

Click here for video tutorial of this post.

If you try to access your ownCloud with a different address to the one used when setting up SSH (Common Name) you will see a warning.

There’s a button to automatically “add as trusted domain” but I couldn’t get it to work as it doesn’t seem to add the port number correctly in the config file so we have to fix it manually.

5 untrusted domain

untrusted domain error

Log in using putty and edit the config.php with the following command

  • nano /usr/local/www/owncloud/config/config.php
  • You can add as many names here as you wish just make sure you keep the syntax correct
  • eg. You may want to add a no-ip and an external ip for instance (assuming your ip is static)
5c add domain with port

Manually add Trusted Domains with Port Number

5d login url

Successful Log In With Other Domain Name