Enabling Apache modules
The Apache HTTP server employs a modular architecture. Additional functionality can be added to the server by including additional modules. While these modules can be compiled into the server itself, on most systems they are installed separately as shared libraries. Apache's configuration files decide which modules are loaded when the server starts.
Webmin provides a simple form to enable and disable Apache modules. In this recipe, we will activate the mod_rewrite
module.
How to do it...
Follow these steps to enable an Apache module:
Navigate to Servers | Apache Webserver | Global configuration | Configure Apache Modules.
Mark the checkbox for the
rewrite
module.Click the Enable Selected Modules button.
How it works...
Webmin adds a line to Apache's configuration, which loads the selected module. In Apache Version 1, the directive for loading modules is AddModule
, while in Version 2 it is LoadModule
.
On some systems Apache2 doesn't actually store the LoadModule
lines in the...