[우분투] AH00558: apache2: Could not reliably .. server’s fully qualified domain name , using 127.0.1.1. Set

우분투 서버에서 APM까지 설치 후 서버에서 apache2ctl -t 무결성 및 apache2ctl graceful 명령어 입력 중 server’s fully qualified domain name 오류 메시지를 확인할 수 있습니다.

apache2ctl -t # apache2ctl graceful
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK

✅ qualified domain name 경고 메시지

qualified domain name 경고 메시지

오류가 아닌 경고 메시지로, etc/apache2/apache2.conf 파일에 SeverName에 도메인 주소 또는 다음과 같은 설정을 진행하여 경고 메시지가 뜨는 것을 제거할 수 있습니다.

vi /etc/apache2/apache2.conf

ServerName localhost # 또는 127.0.0.1

apache2ctl -t
Syntax OK

apache2ctl graceful

여러 도메인을 사용할 경우 전역 설정(/etc/apache2/apache2.conf 등)에 ServerName을 지정해 두면 Apache의 경고 메시지를 방지하고 전체 동작의 안정성을 높이는 데 도움이 됩니다.

일반적으로 ServerName localhost 또는 서버의 기본 도메인을 사용하는 것이 좋습니다.

✅ 참조

Similar Posts

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다