Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache Error : Could not determine the server's fully qualified domain

Status
Not open for further replies.

alphaque

Programmer
Jun 6, 2007
4
MY
Hi
i always get this error message in the apache server erro log when i restart the server :

[Tue Jun 5 02:52:14 2007] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for
ServerName
[Tue Jun 5 02:52:14 2007] [warn] NameVirtualHost 198.189.19.2:80 has no VirtualHosts

May i know how to fix the above errors ?

thanks
rgds..sean
 
Hi

Well, what do you have in the httpd.conf at the [tt]ServerName[/tt] directive ?

And the second is just warning. If you remove the [tt]NameVirtualHost[/tt] directive or define a [tt]VirtualHosts[/tt], will disappear.

Feherke.
 
hi
for the servername, i don't have the value in the httpd.conf, should i set one there ? i have many sites hosted in this server, which domain name i should use ? thanks

cheers..
 
Hi

sean said:
for the servername, i don't have the value in the httpd.conf, should i set one there ?
Yes, then Apache would not try to determine it, so will not fail and will not write that message in the log. Which one... ? Probably would be better to put the first defined virtual host's [tt]ServerName[/tt].

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top