网站运维:解决 drupal8 提示“ settings.php 中的 trusted_host_patterns ”设置未配置 问题

版权声明:原创内容,欢迎转载 https://blog.csdn.net/weixin_43731793/article/details/91360510

1、环境:

drupal 8.7.3
centos 7

2、 添加代码

找到当前网站目录下的sites/default中的settings.php文件。
添加以下代码
博主的网站为cloudsystem.work

$settings['trusted_host_patterns'] = array(
    '^cloudsystem\.work$',
  );

3、如下图

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43731793/article/details/91360510