apache virtual host
People often get confused as to how Virtual hosts in apache work, here’s an explanation from my understanding…
Firstly each <VirtualHost XXX> entry requires (unless there is only one virtual host) a corresponding NameVirtualHost XXX entry.
The XXX is effectively what IP address and port apache should be listening on for this set of virtual hosts.
For a lot of people this may just be ‘*’ – every IP and any port that apache is listening on.
If you are running on more than one port (http and https would be different ports) then you will probably want to specify a port too… ‘*:80′ would specify all IP addresses and port 80.
(more…)