코딩하는 곰

[ubuntu 우분투] apache2: Could not reliably determine the server's fully qualified domain name 본문

Server

[ubuntu 우분투] apache2: Could not reliably determine the server's fully qualified domain name

코딩하는곰 2021. 12. 4. 19:04

아파치 시작 시 에러 발생할 때가 있음

$ service apache2 start
* Starting web server apache2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message

 

1. 아파치 설정(/etc/apache2/apache2.conf) 파일에 ServerName이 어떻게 설정 되어있는지 확인 합니다.

$ grep ServerName /etc/apache2/apache2.conf
$

 

2. grep 해봤으나 아무것도 나오지 않습니다. 설정해주도록 합시다.

vim으로 넣어줘도 상관 없고 어떤 방법으로던 설정파일에 ServerName을 넣어줍니다

$ echo "ServerName localhost" /etc/apache2/apache2.conf

 

3. 아파치 서비스를 재시작 합니다.

$ service apache2 restart
 * Restarting web server apache2
Comments