Debian安裝完Apache2後重啓Apache2報錯:apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
apache
幾乎全部Ubuntu/Debian Apache2的文章之中都說是要修改httpd.conf
,加入ServerName
,而實際上在Debian中httpd.conf
是空的,ServerName
須要加在ports.conf
之中才會起做用。ubuntu
echo "ServerName ubuntu.mydomain.com" >> /etc/apache2/ports.conf