Debian apache2 NameVirtualHost Error
I am getting an error on Debian web server. Runing Apache2. I want ot run two sites on same server with different host names. please help
Error as follows
[warn] VirtualHost firstdomain.com:0 overlaps with VirtualHost seconddomain.com:0, the first has precedence, perhaps you need a NameVirtualHost directive
You have to enable NameVirtualHost.
Open /etc/apache2/ports.conf and add following line
NameVirtualHost *:80
your virtual hosts should map in following method
Config for firstdomain.com
Config for seconddomain.com
Was this answer helpful?
LikeDislike