apache Could not reliably determine the server's fully qualified domain name, using 127.0.1.1

김말이·2022년 3월 17일
0

Back-end

목록 보기
1/2

apache 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

아파치 설치 중 오류 해결 기록
관련 파일들은 모두 /usr/local 파일에 설치하였고, 이것을 여는 과정에서 서버 ip 설정이 제대로 되지 않아 발생하는 것이다.

1. usr/local/apache2.4/conf directory에 있는 httpd.conf 파일에서, 약 51번째 줄을 Listen 127.0.1.1:80으로 바꿔준다.

  1. usr/local/apache2.4/conf directory에 있는 httpd.conf 파일에서,#Servername www.example.com:80을 #ServerName 127.0.0.1:80으로 바꿔준다

# echo "ServerName localhost" >> /usr/local/apache2.4/conf/httpd.conf

grep ServerName /usr/local/apache2.4/conf/httpd.conf


이런 식으로 뜨면 설정이 잘 된 것이다.

profile
공부해서 남주자

0개의 댓글