Warning: Undefined array key "HTTPS" in include() (line 29 of /opt/www/fdv2/drupal.stage/web/sites/default/settings.local.php).
include('/opt/www/fdv2/drupal.stage/web/sites/default/settings.local.php') (Line: 4)
require('/opt/www/fdv2/drupal.stage/web/sites/drupal001.net/settings.php') (Line: 145)
Drupal\Core\Site\Settings::initialize('/opt/www/fdv2/drupal.stage/web', 'sites/drupal001.net', Object) (Line: 1099)
Drupal\Core\DrupalKernel->initializeSettings(Object) (Line: 701)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
httpd: Could not reliably determine the server's fully qualified domain name - Drupal大学 - Drupal问答论坛
首页 / 帖子
httpd: Could not reliably determine the server's fully qualified domain name

服务器apache每次重启都报一个错误,如下:

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

请问这个怎么解决呢?一直也每明白为什么老是报这个错误!

谢谢大家!

1个答案
发布于:2014-05-28 10:19

没有设置ServerName的原因。

在apache的配置文件里面,/etc/httpd/conf/httpd.conf,找到ServerName,修改如下:

ServerName localhost

然后重启即可。