The Apache HTTP Server supports Dynamically Shared Objects (DSOs), or modules, which can easily be loaded at runtime as necessary.
For the Apache HTTP Server to use a DSO, it must be specified in a
. If the module is provided by a separate package, the line must appear within the modules configuration file in the
directory. Refer to Section 10.5.12, “
for more information.
If creating a new module, first install the
httpd-devel package which contains the include files, the header files, as well as the APache eXtenSion (
/usr/sbin/apxs) application, which uses the include files and the header files to compile DSOs.
After writing a module, use
to compile the module sources outside the Apache source tree. For more information about using the
command, refer to the the Apache documentation online at http://httpd.apache.org/docs-2.0/dso.html
as well as the
Once compiled, put the module in the
/usr/lib/httpd/modules/ directory. Then add a
LoadModule line to the
httpd.conf, using the following structure:
LoadModule <module-name> <path/to/module.so>
Where <module-name> is the name of the module and <path/to/module.so> is the path to the DSO.