Nextcloud Error - access through untrusted domain

最近虚拟机的地址更改了,然后发现NextCloud就不可用了。报错如下:

  根据报错里的提示来找到config.php.

[root@localhost nextcloud]# find / -xdev -name config.php  #寻找文件的位置
[root@localhost nextcloud]# vim /data/www/default/nextcloud/config/config.php  #编辑config.php文件

看到trusted_domains的选项,将地址替换成现在的IP地址就好了。

 

 最后我还是systemctl restart httpd,来重启了一下apache。

posted @ 2020-04-20 22:23  富贵树先生  阅读(1275)  评论(0编辑  收藏  举报