Owncloud shows IP Address instead of domain

February 19, 20155.6k views

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?

What does your current DNS configuration look like at Gandi? Feel free to sub your domain with something such as MYDOMAIN.COM if you'd rather not publish it on an open forum, just make sure you include all applicable records (A, CNAME, TXT etc).

In many cases, DNS could be the issue, in others, it could be a server configuration issue. Have you modified any of the server configuration files since deploying the One-Click App?

are you using 192.168.0.1 as an example, or is that actually what you have in your A record? If so, then you should find the ip address of your droplet and use that instead...should be next to your droplet info in DO panel

DigitalOcean's ownCloud One-Click application provides a quick way to set up file sharing and other cloud services on a server you control. This tutorial will guide you through the steps to finish configuring your site, including setting your domain name, installing an SSL certificate, and enabling file encryption.

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:

#ServerName www.example.com
```with:

ServerName your_domain.com

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 => 'your_domain.com',
),

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