// troubleshooting guide · owncloud
ownCloud Access Through Untrusted Domain Error
- Status
- Workaround available
- platforms:
- Self-hosted ownCloud Classic
- updated:
- November 16, 2026
- reports:
- 4
- Method
- how we research
RUNBOOK · owncloud/access-through-untrusted-domain4 FIXES
// quick answer
ownCloud only answers on hostnames listed in trusted_domains. Add the exact hostname or IP you type in the browser to config.php (or with occ) and reload.
Most likely fix: Add the domain with occ
How to fix it
// try these in order, the most common fix is first
FIX 1Add the domain with occ
- 01Run: sudo -u www-data php occ config:system:set trusted_domains 1 --value=cloud.example.com
- 02Use the next free index number for each extra domain
- 03Reload using exactly that hostname
Did this fix it?FIX 2Edit config.php
- 01Open config/config.php
- 02Add the hostname or IP (not the client's IP) to the trusted_domains array
- 03Save and reload
Did this fix it?FIX 3Check the log
- 01Look in owncloud.log for 'Trusted domain error' entries
- 02Add the host value shown there
Did this fix it?FIX 4Update Docker installs
- 01Upgrade images older than 10.11, which shipped a trusted_domains misconfiguration (CVE-2022-43679)
- 02Set OWNCLOUD_TRUSTED_DOMAINS with every hostname
Did this fix it?
Symptoms
The login page shows 'You are accessing the server from an untrusted domain', often after moving the server, adding a domain or accessing from outside the LAN.
Why it happens
- C-01Hostname or IP missing from trusted_domains
- C-02Confusing the client's IP with the server hostname
- C-03Reverse proxy hostname not added
- C-04Docker image misconfiguration in versions up to 10.11
// this guide also covers
- owncloud untrusted domain
- owncloud trusted domains
- owncloud access through untrusted domain
Still not working?
If ownCloud keeps failing, you're not alone. See every ownCloud problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
Other ownCloud errors
- ownCloud Desktop Client Not Syncing
- ownCloud Desktop App 7 Not Connecting to ownCloud Server
- ownCloud File Is Locked (Server Replied 423 Locked)
- ownCloud Large File Upload Fails (413 Request Entity Too Large)
- ownCloud Stuck in Maintenance Mode After Update
- ownCloud Integrity Check Failed (Some Files Have Not Passed)
- ownCloud Unable to Open or Create the Local Sync Database
- ownCloud Virtual Files Not Working on Windows