Virtualhostos probléma...

Fórumok

Eddig volt két IP-m két domainnek és működött így:

VirtualHost xxx.xxx.xxx.xxx
ServerName www.domain1.hu
DocumentRoot /www/domain1
/VirtualHost

VirtualHost yyy.yyy.yyy.yyy
ServerName www.domain2.hu
DocumentRoot /www/domain2
/VirtualHost>

Közben lett egy új domainem az yyy.yyy.yyy.yyy IP-re iránytva, tehát ez kettőt fogad(na)
De ha ezt a sort hozzáírom akkor hibaüzivel leáll.

VirtualHost yyy.yyy.yyy.yyy
ServerName www.domain3.hu
DocumentRoot /www/domain3
/VirtualHost

Ez a hibaüzi: mi lehet a gond?

www:/home/haverok# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...[Fri Oct 17 12:55:49 2008] [warn] VirtualHost yyy.yyy.yyy.yyy:0 overlaps with VirtualHost yyy.yyy.yyy.yyy:0, the first has precedence, perhaps you need a NameVirtualHost directive
httpd (no pid file) not running
[Fri Oct 17 12:55:49 2008] [warn] VirtualHost yyy.yyy.yyy.yyy:0 overlaps with VirtualHost yyy.yyy.yyy.yyy:0, the first has precedence, perhaps you need a NameVirtualHost directive

Hozzászólások

perhaps you need a NameVirtualHost directive !

"VirtualHost yyy.yyy.yyy.yyy:0 overlaps with VirtualHost yyy.yyy.yyy.yyy:0, the first has precedence, perhaps you need a NameVirtualHost directive"

Szóval a NameVirtualHost szerepel a konfigban?