Ubuntu

為什麼我會出現這個錯誤

  • December 16, 2010
* 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 應用程序團隊框,這是我的虛擬主機

<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 www.something.com. 如果您添加www.something.com到主機文件中,它將停止抱怨。

我認為它是(並且很累,所以 YMMV)是 Apache 的虛擬主機指令在 *:80 上阻塞,並聲明了一個 ServerName;我曾經遇到過麻煩。嘗試將 www.something.com:80 放在您的 VirtualHost 行中,看看是否可行。

引用自:https://serverfault.com/questions/184160