Hostname configuration for apache

De vez en cuando me hago algunos apuntes en documentos de texto para no olvidarme de nada acerca de configuraciones o cosas así cuando reinstalo el sistema. Os dejo una que hice antes de pasar el servidor a archlinux, con esto resolveréis el típico problema ese de "apache could not resolve the correct domain name, using 127.0.0.1..." o algo así:
For a correct configuration of apache:

First you have to set your hostname:
hostname domain-name.com
Then edit /etc/hosts and add this:
ip.address domain.com
Just put your public IP address of the server, and the main domain name attached to the server.

Next, open your apache config file (/etc/httpd/conf/httpd.conf) and look for this:
#ServerName www.domain.com:80
Un-comment it and change the domain name to what you have for your server.

Then restart apache. :)

Lo siento pero tengo la manía de escribirlos en ingles, de todas formas creo que se entienden bastante bien. :)