I've just followed this tutorial on setting up name-based virtulization in Apache, and it worked really well.
The tutorial basically got you to add a config file to
yourdomain.com, and then link it to
By default, apache includes two site config files in
Should you edit these files or remove the link form the
After playing around with this (locally), I realised that by default the default site points to your root
/var/www directory, and so if someone goes to the IP of your server directly, could they not then see all the vhosts and other directories in
/var/www, unless the default vhost config is changed to point to a different directory, or remvoed from
I'm just wondering what is commonly done with the default site if the server is being used for name-based virtualization?
Sorry if I got some of this incorrect as I'm quite new to running my own web server.