Trusted Domain Spec in config.php

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

spec for trusted domain fails. can not find a solution

Or for longer, use three backticks above and below the code snippet:

I am having trouble with access to my (reemote( server:
Access through untrusted domain

I have tried variations of parameters for trusted domains without success. WHAT should I use? Some examples appear below.

I suspect this might be due to being on a hetwork with many other users - a "bulk" service supplied by comcast.com.

My i.p. address is 50.206.176.154 and comcast.com is my ISP.

Here are examples

<?php
$CONFIG = array (
  'instanceid' => 'oc6yffqlzxou',
  'passwordsalt' => '/OBSCURED',
  'secret' => 'OBSCURED',
  'trusted_domains' =>
    array (
   0 => 'localhost',
   1 => '50.206.176.154',
   2 => '[fe80::1:50]',
  ),
PARAMETERS OBSCURED
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
);


My first try was with:

'trusted_domains' =>
  array (
   0 => 'localhost',
   1 => 'comcast.com',
   2 => '50.206.176.154',
   3 => '[fe80::1:50]',
   
Tried also

'trusted_domains' =>
  array (
   0 => 'localhost',
   1 => 'www.comcast.com',
   2 => '50.206.176.154',
   3 => '[fe80::1:50]',

<?php
$CONFIG = array (
  'instanceid' => 'oc6yffqlzxou',
  'passwordsalt' => '/OBSCURED',
  'secret' => 'OBSCURED',
  'trusted_domains' =>
    array (
   0 => 'localhost',
   1 => '50.206.176.154',
   2 => '[fe80::1:50]',
  ),
PARAMETERS OBSCURED
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
);

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 23.0.3.2
Operating system and version (eg, Ubuntu 20.04): running on shared host
Apache or nginx version (eg, Apache 2.4.25): unsure
PHP version (eg, 7.4): 7.4.30

The issue you are facing:

See above.

Is this the first time you’ve seen this error? (Y/N): No

Steps to replicate it:

  1. access my instance logging in via web
  2. on some occasions, the error does NOT happen.

The output of your Nextcloud log in Admin > Logging:

Access through untrusted domain

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

bronordc/public_html/myplace/

The output of your Apache/nginx/system log in /var/log/____:

not available - shared host

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

not available - shared host

Please post more details. E.g. parts of your config/config.php.
Read this.

Add your domain you use for access in this list:

'trusted_domains' =>
   [
    'demo.example.org',
    'otherdomain.example.org',
    '10.111.112.113',
    '[2001:db8::1]'
  ],

Pls re-read my post. Details already posted. Tried your approach. Pls. note the access is NOT from my domain. Thanks for the info.

Where do you find this logs? Maybe apache2 logs? Than you have perhaps a apache2 virtual host probelm.

Have you ever access your Nextcloud? Then your nextcloud.log can be empty.

No helpful replies. Closing tic >> /dev/null!

Trying re-install.