Owncloud shows IP Address instead of domain

  • Posted on February 19, 2015
  • wuherAsked by wuher

I have a Ubuntu droplet with owncloud on it, I got a domain name from Gandi, set everything up according to the tutorials here (DNS, records). I can access my server using the domain name but when I do it, it redirects to the IP address. How can I fix that?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I am looking at my owncloud install under /config/config.php and there is a part with the domain:

'trusted_domains' => 
  array (
    0 => '',

You might try adding your domain to that array, or if that section does not exist, add it

In order to use your own domain with the site, you will need to update your Apache configuration. Edit both /etc/apache2/sites-available/owncloud-ssl.conf and /etc/apache2/sites-available/000-owncloud.conf and replace the line:




Next, you should edit the trusted_domains entry in you ownCloud configuration. This is located in /var/www/owncloud/config/config.php```

'trusted_domains' => 
  array (
    0 => '',

You will need to restart Apache in order for the changes to take affect:

sudo service apache2 restart