Trusted domain doesn't work

Hello folks,

I saw many topic about this but couldn’t solve my issue ,

I unable to connect to my nextcloud apart from my localhost

I used this command : sudo nextcloud.occ config:system:set trusted_domains 1 --value=example.com
I can see the domain is added but when i try to access it i get a page “must add this domain to trusted domain”

then

When i go manually to config/config.php i see the domain already added and if i put new one and save , i am unable to access the web server

Appreciate any advice thanks !

I kind of solve the issue i can connect throught my domain however some people have still the error message "add trusted domain "

Edit: Solve everything forogot to add www… in trusted domain

1 Like