Virtual Hosts

Avi Greenbury lists at avi.co
Thu Nov 8 10:30:43 UTC 2012


Patrick Asselman wrote:
> 2. Set up virtual hosts in your httpd.conf file

On Debian and Ubuntu it's more normal to create one file per vhost in
/etc/apache2/sites-available, and then run the command

  a2ensite <site name>

where the site name is the name of the file in sites-available to
enable the config. This sounds more convoluted (and it is) but it's
generally easier to make changes in the future this way than with a
load of vhosts in a single file.

-- 
Avi




More information about the ubuntu-users mailing list