본문 바로가기

리눅스

Apache HTTP Server에서 ServerName 지시어 설정 오류

반응형

Apache HTTP Server에서 ServerName 지시어 설정 오류

Apache 경고 해결 — Could not reliably determine the server's fully qualified domain name

[root@ns1 src]$ apachectl start
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Apache가 서버의 FQDN(Fully Qualified Domain Name) 을 찾을 수 없을 때 출력하는 경고입니다.

해결 방법

sudo vim /etc/httpd/conf/httpd.conf

아래 부분을 찾아서 수정

#ServerName www.example.com:80

수정 후

ServerName 127.0.0.1:80
  • 또는 실제 도메인
ServerName scbyun.com:80

Apache 재시작

sudo systemctl restart httpd

 

728x90
반응형