ya…I know there is tons of questions about that in the web but I did not find a proper answer…so, ya, I have issues with the trusted domains:
I stuck to the guideline here:
so long story short: I intent to run nextcloud on unbuntu-live-server 18.04 on virtualbox 6.1 (which runs on a lubuntu 20.10 but I guess that does not make a difference, or does it?)
on the server, I got the IP by using ip a | grep inet (which is the same like in ifconfig) and I added it to the config.php file by using sudo nextcloud.occ config:system:set trusted_domains 1 --value=192.168.0.82
And if I look at the config.php it is neatly written there too.
However, if I open the browser using https://192.168.0.82, the nextcloud page is displayed but the little munchkin sais that its not a trusted domain.
Elsewhere I have read that the log file of the server could give some insights…well, sorry about that, but where can I find them?
If i query the system with the command su - www-data -s /bin/bash -c 'php /var/www/html/n2/occ config:system:get trusted_domains'
I get the correct list of domains but on the second one it doesn’t work.
NextCloud version 22.2.5
root@iZwz92bor1grj51dzggxi5Z:/data/wwwroot/default/nextcloud# su - www-data -s /bin/bash -c ‘php /data/wwwroot/default/nextcloud/occ config:system:set trusted_domains 1 --value=xxxxx.xyz’
No directory, logging in with HOME=/
Cannot write into “config” directory!
This can usually be fixed by giving the web server write access to the config directory.
I keep having the same problem with version 24.0.4 .
Although the config:system:get trusted_domains command shows the two trusted domains, if I try to connect to the second one I always get the untrusted domain message