小编Tob*_*len的帖子

httpd:无法可靠地确定服务器的完全限定域名

我知道这个问题经过了很多研究,但这里的解决方案并没有解决它们.

让我们从一些背景信息开始:

OS X 10.8.4 Apache 2.2.22

问题:我在控制台中遇到此错误,Apache无法找到我的localhost,但确实启动了.奇怪的.

[Sat Aug 17 13:40:06 2013] [info] mod_ssl/2.2.22 compiled against Server: Apache/2.2.22, Library: OpenSSL/0.9.8r
httpd: Could not reliably determine the server's fully qualified domain name, using Specter.local for ServerName
Run Code Online (Sandbox Code Playgroud)

所以通常这会指向我的ServerName没有设置正确.它是:/我尝试过不同的变种,如Specter.local,localhost等

这是我的/private/etc/httpd.conf的副本,这与/private/etc/apache2/httpd.conf相同

# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a …
Run Code Online (Sandbox Code Playgroud)

apache macos server-configuration web

14
推荐指数
2
解决办法
3万
查看次数

标签 统计

apache ×1

macos ×1

server-configuration ×1

web ×1