How to force usage of DNS name instead of IP in ownCloud

Sometimes when sharing a link in owncloud, especially on the mobile and desktop clients, the links are using the IP address instead of the DNS name.

This behavior can be changed by using the overwritehost parameter in the config.php file included inside /var/www/owncloud/config folder.

So, for example, if you are using the DNS name, then you should add the parameter as follows:

‘overwritehost => ‘,



About SoCRaT

Research Support and Infrastructure Engineer, OSS & Linux Geek
This entry was posted in Cloud, Uncategorized and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s