ERROR: Module mod_vhost_alias does not exist ERROR: Module mod_vhost_alias does not exist apache apache

ERROR: Module mod_vhost_alias does not exist


Just remove mod prefix. Most of apache modules enabled/disabled without mod prefix.

Right command:

sudo a2enmod vhost_alias


I had the name wrong.All I had to do was this:

sudo a2enmod vhost_alias

And it worked.By the way, here is what I added to the default /etc/apache2/sites-enabled/000-default file

# DocumentRoot /var/wwwVirtualDocumentRoot /home/drew/sites/%0ServerAlias *