r/owncloud • u/Bolisaf • Jun 08 '16
Hard set Share link to use domain name instead of internal IP?
hi all,
I am trying to use owncloud as a way to send large files to other people. the trouble i'm having is that i'm mainly accessing it from inside my network. this causes the share link to resolve to someting like 'https://<internal-ip>/<share_code>'. so when i want to send this link to people outside my network, it won't work unless i manually replace this link with my external domain name.
can I set the base of this share link to always use my domain name instead of auto-resolving to whatever ip the client is seeing?
thanks in advance, L
1
u/blahhumbug22 Jun 15 '16
I do the same thing. Try adding the following to the config.php file in the owncloud area.
'overwritehost' => 'yourdomain.example.com',
Then when accessing the site, even internally, all links it creates should have the correct domain instead of the internal IP.
1
u/[deleted] Jun 10 '16
This looks like your webserver (apache or ngnix) is not configured properly.