How to load the modules for Apache2?
Solution 1:
You can enable modules using a2enmod. For example:
a2enmod proxy
That command will create a symlink inside /etc/apache2/mods-enabled
that points to the module in /etc/apache2/mods-available
.
Likewise, to disable a module, use a2dismod. That command will remove the symlink from the mods-enabled
directory.
Bonus tip: there exist similar commands to enable/disable sites: look at a2ensite and a2dissite.