你在这里

drupal8信任主机设置

主标签

drupal 8.2.5安装后状态报告有如下错误,根据官网的设置,我修改了settings.php,修改为:$settings['trusted_host_patterns'] = array(
'^localhost$',
);

但是还是报错,错误跟之前以下都是下面这张图,表示没能解决,求解!

我使用的是CetOS7.3 LAMP环境下安装的drupal 8.2.5出现的此问题,站点位置为:/var/www/html/drupal

settings.php在drupal/sites/default/ 目录下,恳请各位前辈帮助解决!谢谢!

xuan_qu_019.png

Drupal 版本: 

猜你喜欢

我是通过修改vhost虚拟出来一个域名使用的,没有任何问题,你也可以试试

查看https://www.drupal.org/node/1992030 中的MAMP exception部分:

MAMP exception
About local development, MAMP (3.5.2) '^localhost$' setting give the error message "The provided host name is not valid for this server" and doesn't load the site. Found a solution changing it with site name without port number. In my test site "drupal8":

$settings['trusted_host_patterns'] = array(
'^drupal8$',
);
made Trusted Host active.