Access owncloud server from two addresses


#1

Since I changed ISP's my new one won't route my external IP back into my network like the old one. So I need to be able to access owncloud by two different IP's, one being my external and one being my internal.
My external is owncloud.mydomain.net

However when I try to access by my internal IP 10.1.1.1 for example I get the message to add 10.1.1.1 as a trusted domain and I do so but it redirects to the external owncloud.mydomain.net and then can't access it again. Can I prevent the redirect from the 10.1.1.1 IP the name, looking at the config I see its not adding the trusted IP.

Running 9.1.4.2


#2

I don't understand the redirection. How is the redirection forced?

Try to edit the config file:

 'trusted_domains' => 
  array (
    0 => '10.1.1.1',
    1 => 'owncloud.mydomain.net',
  ),

#3

Configure static dns in your internal dns server. That way owncloud.yourdomanin.net resolves to internal ip (i.e. 10.1.1.1 ) when your client device is connected locally, and public ip when your client is offsite.
If your router does not have a build in dns server, or lack the ability to configure static dns entries, you could install a dns server service on your owncloud server, and configure your routers dhcp to provide the owncloud server ip as dns server.
And make sure your clients are set to receive dns server with dhcp.