// 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
Share

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

  1. FIX 1Add the domain with occ

    1. 01Run: sudo -u www-data php occ config:system:set trusted_domains 1 --value=cloud.example.com
    2. 02Use the next free index number for each extra domain
    3. 03Reload using exactly that hostname
    Did this fix it?
  2. FIX 2Edit config.php

    1. 01Open config/config.php
    2. 02Add the hostname or IP (not the client's IP) to the trusted_domains array
    3. 03Save and reload
    Did this fix it?
  3. FIX 3Check the log

    1. 01Look in owncloud.log for 'Trusted domain error' entries
    2. 02Add the host value shown there
    Did this fix it?
  4. FIX 4Update Docker installs

    1. 01Upgrade images older than 10.11, which shipped a trusted_domains misconfiguration (CVE-2022-43679)
    2. 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 us

Watch ownCloud Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other ownCloud errors

All 12 ownCloud errors and fixes →