Wondering about how to get around Access through untrusted domain nextcloud error. We Bobcares can give you a detailed overview of the process with help of our Server Management Services.
“Access through untrusted domain nextcloud” error
1. Set up nextcloud.
2. Access locally via server/nextcloud private IP address. Example “IP/index.php/login”.
3. Add SSL access.
4. Add domain or public IP to trusted domains.
After setting up the above functions, you still get an untrusted domain error when trying to access via public IP or domain name.
The answer to fixing your problem is simple. you have port forwarding set up to access your server via the net. So the flow of the IP packet is where you need to check.
The problem is that when you port forward, your domain is no longer the IP your access the server from, it’s your gateway or IP of the port forwarding.
The following example consists of the simplest setup. If you bridge your modem, then that would vary from the given example, but the principles would be the same.
More detail Example:
Domain public IP = 9.9.9.1
Domain name = website.com
Home setup:
modem public IP = 8.8.8.1
modem privite IP = 192.168.1.1
DHCP server IP = 192.168.1.1
Default public gateway IP = 8.8.8.34
port forward rules:
Any IP on port 1234(or 443) forwards to 192.168.1.2 on port 443
nextcloud server IP = 192.168.1.2 (DHCP reserved)
The default gateway IP = 192.168.1.1(points to the way out of the network)
nextcloud trusted domain list.
192.168.1.2
website.com <——— this is where your problem occurs.
The path of the packet causes problems.
The path is as follows:
“website.com:1234” —–> modem ——-> port forward rule ——-> 192.168.1.2
Further, at the port forward rule portion, the source is no longer the domain name “website”, your new source will show: 192.168.1.1
To solve this issue:
nextcloud trusted domain list.
192.168.1.2
192.168.1.1 <————- simply add your gateway to the trusted domains.
“website.com”
If having trouble when it’s asking for a trusted domain. it’s the domain you GO TO to access NextCloud and not where you’re trying to access FROM.
So, just go to /config/www/nextcloud/config and add your domain to the config.php file.
[Looking for a solution to another query? We are just a click away.]
Conclusion
PREVENT YOUR SERVER FROM CRASHING!
Never again
lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server
24/7 so that it remains lightning fast and secure.
0 Comments