Aquí está el error que obtengo al iniciar Apache2:
* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Wed Oct 21 16:37:26 2009] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Oct 21 16:37:26 2009] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Oct 21 16:37:26 2009] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Oct 21 16:37:26 2009] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Oct 21 16:37:26 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
Primero seguí esta guía sobre la configuración de Apache para alojar múltiples sitios:
Luego encontré una pregunta similar en ServerFault e intenté aplicar la solución, pero no ayudó.
Aquí hay un ejemplo de mi configuración final de VirtualHost:
<VirtualHost *:80>
ServerAdmin admin@xxx.com
ServerName www.xxx.com
ServerAlias xxx.com
# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /var/www/www.xxx.com
# Logfiles
ErrorLog /var/www/www.xxx.com/logs/error.log
CustomLog /var/www/www.xxx.com/logs/access.log combined
</VirtualHost>
con el dominio X'd para proteger a los inocentes :-)
Además, tengo el archivo conf.d / virtual.conf mencionado en la guía que se ve así:
NameVirtualHost *
Lo extraño es que todo parece funcionar bien para dos de los tres sitios.