Debian Apache2 啓動報錯 ServerName

Debian安裝完Apache2後重啓Apache2報錯:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerNameapache

幾乎全部Ubuntu/Debian Apache2的文章之中都說是要修改httpd.conf,加入ServerName,而實際上在Debian中httpd.conf是空的,ServerName須要加在ports.conf之中才會起做用。ubuntu

echo "ServerName ubuntu.mydomain.com" >> /etc/apache2/ports.conf
相關文章
相關標籤/搜索