Hello everyone. I’m a noob at Linux and I set up Ubuntu desktop as a server and installed owncloud. When connecting from outside of my local network I can connect fine if I added the domain in the config.php file. I added the local 192.168.1.11 - my laptop, but with it when I connect to https://192.168.1.12 I am greeted with untrusted domain. In the apache log I confirmed that the connecting computer’s ip is 192.168.1.11 That is my first issue.
Second issue: I cannot add domains in the settings when I log into owncloud on my server machine. It just refreshes when I hit enter. Also no domains that I added in the config.php are listed there.
Third issue: I don’t understand how trusted domains work when I use my laptop at the school’s wifi network. Do I have to add each single different IP I will connect from to the php beforehand? That seems very tedious to me. I’d rather have it open to all domains so I can connect from everywhere normally. I understand that this is probably terrible from a security standpoint. But Dropbox allows me to log in from everywhere.
All this is very complex and hard to me still, I appreciate all the help, thank you!
Thanks alfredb, your were right (of course), but as I have been stumbling on the same problem the last two hours, I think there is an easy misunderstanding of what the ‘trusted_domains’ keyword exactly means. Just quoting: ‘both are related to the server, not the accessing client’ is true but also a bit cryptic.
People like myself will first think that ‘trusted_domains’ is their (client) ip or ip range, while it is not. ‘trusted_domains’ is actually what you type in your client browser to access your owncloud box e.g.:
‘localhost’ from your owncloud box itself
‘192.168.blah.blah’ from your home class C network computers
‘my.public.ip’ when accessing from the outside world
So basically there is only 3 (or rather 2) levels of denial of access provided (fine with me)… Maybe the evidence need to be rewritten a few times to become an evidence.