November 6th, 2009 posted by Bender Rodríguez
I had been seeing this error on one of our Ubuntu servers when restarting Apache2, and I could not figure out why. All of the obvious reasons for this error were not relevant to our situation. In /etc/hosts we had the following:
127.0.0.1 localhost localhost.localdomain ourdomain.com www.ourdomain.com
127.0.0.1 ourservername
which should have been sufficient, but apache did not like the fact that ourdomain.com and www.ourdomain.com was on the same line as the localhost stuff. I changed /etc/hosts to:
127.0.0.1 localhost localhost.localdomain
127.0.0.1 ourdomain.com www.ourdomain.com
127.0.0.1 ourservername
and the error went away.
"Madmen open the paths which are later traversed by the wise."
Carlo Dossi