* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 184.106.238.30 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 184.106.238.30 for ServerName ...done.
我正在安装一个rails应用程序teambox,这里是我的虚拟主机
<VirtualHost *:80> DocumentRoot /var/www/teambox/public ServerName www.something.com <Directory /var/www/teambox/public> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all Options -MultiViews </Directory> CustomLog /var/log/apache2/access.log combined ErrorLog /var/log/apache2/error.log RailsEnv production </VirtualHost>
并在我的本地主机文件
184.106.238.30 something.com
Apache会尝试查找在ServerName指令中定义的ServerName 。 在你的情况这是ServerName www.something.com 。 如果您将www.something.com添加到您的主机文件,它将停止抱怨。
我认为是这样的(并且YMMV感到厌倦)是Apache的虚拟主机指令在声明ServerName的*:80上窒息; 我遇到过一次麻烦。 尝试把www.something.com:80放在你的VirtualHost行,看看是否有效。