ERROR: The mod_vhost_alias module does not exist

I am trying to enable mod_vhost_alias in apache. I did some googling and found a team

sudo a2enmod mod_vhost_alias 

I tried this, but then I get it

 ERROR: Module mod_vhost_alias does not exist! 

How to make mod_vhost_alias existing?

Download somewhere?

Thanks!

+6
source share
2 answers

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

Right command:

 sudo a2enmod vhost_alias 
+11
source

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

 sudo a2enmod vhost_alias 

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

 # DocumentRoot /var/www VirtualDocumentRoot /home/drew/sites/%0 ServerAlias * 
+2
source

Source: https://habr.com/ru/post/950854/


All Articles