You are no doubt trying to add a vhost and you get the following error when attempting to affect changes by restarting the http daemon (httpd):

(EAI 2)Name or service not known: Could not resolve host name *.80 — ignoring!

Not to worry!

Add the following text to httpd.conf at the bottom (That’s at /etc/httpd/conf/httpd.conf):


ServerAdmin [email protected]
DocumentRoot /var/www/html/the_path/
ErrorLog /logs/
CustomLog /logs/ common

Now just restart the http daemon:

/etc/init.d/httpd restart

Make sure you replace the your details into the above snippet.