Enabling / Disabling Modules / Sites in Apache 2 on Ubuntu

I really like the way Debian and Ubuntu handle Apache 2 modules and virtual host configurations.
By using symlinks between the installed modules and the directory for the active ones, you can easily turn them on and off. It couldn’t be easier, or could it? Well it can actually!
There are a number of binaries available that can handle all of this even more gracefully (at least they appear to):
a2enmod
a2ensite
a2dismod
a2dissite

a2enmod enables modules, while a2dismod disables them. The other two have a similar function with regard to virtual sites (vhosts). Nifty!
Of course they may have a downside as well.. I’m yet to experiment that much with them

By Michele Neylon

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight.

One comment

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version