我知道這個問題已經被看了很多,但這裏的解決方案並沒有解決它們。httpd:無法可靠地確定服務器的完全合格的域名
讓我們先了解一下背景資料:
OS X 10.8.4 的Apache 2.2.22
問題: 我在控制檯收到此錯誤和Apache無法找到我的本地,但確實開始。奇怪的。
[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
所以通常這會指向我的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 registered DNS name, enter its IP address here.
#
ServerName localhost
我的主機文件的設置如下:
127.0.0.1 localhost localhost.local
255.255.255.255 broadcasthost
127.0.0.1 themill.dev
127.0.0.1 phpmyadmin.dev
127.0.0.1 Specter.local
在我/private/etc/apache2/users/ta.conf如下
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
# DEV: THEMILL SITE
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/ta/Sites/themill/htdocs"
ServerName themill.dev
ServerAlias *.themill.dev
ErrorLog "/Users/ta/Sites/themill/log/error_log"
CustomLog "/Users/ta/Sites/themill/log/access_log" common
</VirtualHost>
# PHPMYADMIN
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/ta/Sites/phpmyadmin"
ServerName phpmyadmin.dev
ServerAlias *.phpmyadmin.dev
ErrorLog "/Users/ta/Sites/phpmyadmin/log/error_log"
CustomLog "/Users/ta/Sites/phpmyadmin/log/access_log" common
</VirtualHost>
不知道還有什麼應該配置真的。它曾經工作,但發佈10.7升級,它從來沒有工作,現在,我正在試圖解決它它正在做我的頭。
讓我知道如果你需要更多的信息。
發出該消息的代碼僅在全局配置沒有servername時運行,您確定這些配置文件正在使用嗎? – covener