Настраиваю 2 сайта на одном хосте.
При запуске apache2 вот такие варнинги:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sun Jan 29 20:31:39 2012] [warn] NameVirtualHost web-server-home-net.dyndns.org:80 has no VirtualHosts
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sun Jan 29 20:31:40 2012] [warn] NameVirtualHost web-server-home-net.dyndns.org:80 has no VirtualHosts
Содержание httpd.conf
<VirtualHost theeternalsmile.dyndns.org:80>
DocumentRoot /var/www/theeternalsmile/
ServerName localhost
NameVirtualHost theeternalsmile.dyndns.org:80
</VirtualHost><VirtualHost web-server-home-net.dyndns.org:80>
DocumentRoot /var/www/bg/
ServerName localhost
NameVirtualHost web-server-home-net.dyndns.org:80
</VirtualHost>
theeternalsmile.dyndns.org и web-server-home-net.dyndns.org в данном случае - IP одного и того же сервера.
Должно в идеале быть /var/www/bg/ для web-server-home-net.dyndns.org и /var/www/theeternalsmile/ для theeternalsmile.dyndns.org
ОС - Ubuntu Server