Check /etc/hosts for your hostname.
Check /etc/httpd/conf/httpd.conf or other apache conf file for this directive:
ServerName [url=“http://www.example.com:80”]www.example.com:80[/url]
Check /etc/sysconfig/network for the :
HOSTNAME= xxxxxx directive
Somewhere you haven’t defined your machines hostname and apache is saying, “ok fine, we’re ‘localhost’ then . . .”