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.
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)