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
Rob says
No real downside compared to making/breaking symlinks; that’s exactly what those programs do.