3

I have been working on setting up namevirtualhosts on my centos 5 server. I have added all of the virtualhosts to my httpd.conf file and alos uncommented the namevirtualhost line.I also have my domain name pointing to the correct ip address. I keep getting these errors and cannot seem to figure out why.

[error] (EAI 2)Name or service not known: Could not resolve host name *:80/ -- ignoring!
[error] (EAI 2)Name or service not known: Could not resolve host name *:80/ -- ignoring!

I have looked all over the place and at many tutorials but nothing seems to work

2

Looks like a typo.

Instead of:

NameVirtualHost *:80

..you have:

NameVirtualHost *:80/

Since the port section isn't pure numbers, instead of seeing * as the host part, it thinks *:80/ is a hostname (and :80 is the implied default port, for a config of *:80\:80).

Fix that and you should be ok.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.