Servername 질문입니다

apache2: Could not reliably determine the server’s fully qualified domain name, using 192.168.1.254 for ServerName
… waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 192.168.1.254 for ServerName

위와같은 애러가나서

httpd.conf파일에 servername domain
을 추가하였습니다.

태스트를 위하여 host파일을 변조하여 serverip testdomain 이라는 주소를 만들어

접속을 해보았더니 애러는 안뜨고 그대로 홈패이지가 출력이 되었습니다. ;;

원래 이런것인가요?

원래 그래요.
간단히 아파치 설정의 serverName= IP를 추가해도될껍니다.

[quote="ksd3971":3heed56d]apache2: Could not reliably determine the server’s fully qualified domain name, using 192.168.1.254 for ServerName
… waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 192.168.1.254 for ServerName
[/quote:3heed56d]
이 메세지는 192.168.1.254 에 해당하는 [b:3heed56d]이름[/b:3heed56d]을 /etc/hosts 파일이나 DNS 서비스를 통해서 얻지 못하였다는 [b:3heed56d]경고[/b:3heed56d]입니다.

[quote="ksd3971":3heed56d]
접속을 해보았더니 애러는 안뜨고 그대로 홈패이지가 출력이 되었습니다. ;;
[/quote:3heed56d]

브라우저를 통해서 http://192.168.1.254 라는 주소로 접근하지 않고 http://servername 이라는 주소로 접근할때,

  1. servername에 해당하는 IP 주소가 가상서버(하나의 IP에 다수의 웹서비스를 제공하는)를 설정하지 않았다면
    - 기본 위치 (/var/www) 아래의 폴더를 기준으로 웹 브라우저에 보여집니다.

  2. 가상서버가 설정되어 있다면
    - 접근하는 이름에 따라서 (http://servername1, http://servername2, http://servername3 …) 다르게 나올 수 있습니다.

[quote="ksd3971":3heed56d]
원래 이런것인가요?
[/quote:3heed56d]

질문이 너무 애매해서 어떤 것을 예상하는지 알수가 없으나, /etc/hosts 파일이나 DNS에 192.168.1.254에 대한 서버이름을 설정하지 않았다면
웹서비스를 제대로 제공할 수 없기 때문에 경고를 보여준 것 뿐입니다. 사용자가 어떻게 하든 apache는 설정된 대로 충실히 보여줄 뿐이죠.

두분다 감사드림니다. 결국은 dns문제엿군요! ㅠㅠ

Apache 2.0을 설치하던 도중…

AH00558: httpd.exe: Could not reliably determine the server’s fully qualified do main name, using xxxx::xxxx:xxxx:xxxx:xxxx. Set the ‘ServerName’ directive globally to suppress this message
<OS 10013>액세스 권한에 의해 숨겨진 소켓에 액세스를 시도했습니다. : AH00072: make_sock: could not bind to address [::]:80



라고 나옵니다.

혹시 해결방법을 아시나요? ㅜㅜ