Apache2 running multiple hosts
For running multiple sites on your box, you have to do something with configuration. What I did is (in my opinion) a nice way:
create a file called /etc/apache2/conf.d/virtual.conf
include the following text:
#
# We’re running multiple virtual hosts.
#
NameVirtualHost [your IP]:80
Now you can create a file in your /etc/apache2/sites-available map called (in my case) e-miel.net with the VirtualHost tag pointing to the NameVirtualHost mentioned above:
<VirtualHost [your IP]:80>
With this no errors will be logged after restarting Apache2.
Btw, I ran into this error:
_default_ VirtualHost overlap on port 80
It seems that /etc/apache2/ports.conf also contains a “global” (don’t know for sure if that is the correct word) variable that holds the NameVirtualHost value.