Different distributions of Linux have different ways of implementing Virtual Hosts. Debian and derivatives use a separate
/etc/apache2/sites-available directory in which separate individual virtual host files are maintained. A virtual host is enabled using the command:
Code:
a2ensite virtualsitefilename
(
a2dissite disables a virtual host)
This command creates a link in the
/etc/apache2/sites-enabled directory. When Apache2 is reloaded or started the configuration files are read from the
/etc/apache2/sites-enabled directory to initialize the virtual hosts.
I prefer this implementation to the all in one
httpd.conf file.