Work with Apache modules
The httpd service is a modular application, and you can extend it with several Dynamic Shared Objects (DSO). You can dynamically load or unload DSO modules at runtime as necessary. You can find these modules in the /usr/lib64/httpd/modules/ directory.
Load a dynamic shared object module Copy linkLink copied!
To configure the functionality for the Apache HTTP Server, you can load Dynamic Shared Object (DSO) modules. Use the LoadModule directive to load a particular DSO module. A separate package has modules with their own configuration file stored in the /etc/httpd/conf.modules.d/ directory.
Before you begin Copy linkLink copied!
- You have installed the
httpdpackage.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Verify that the module is loaded and enabled:
# httpd -M | grep ssl
Compile a custom Apache module Copy linkLink copied!
You can create your own module and build it by using the httpd-devel package. This package includes header files, include files, and the Apache Extension (apxs) utility, which is required to compile a module.
Before you begin Copy linkLink copied!
- You have the
httpd-develpackage installed.
Procedure Copy linkLink copied!
# apxs -i -a -c module_name.c
Results Copy linkLink copied!
- Load the module the same way as described in Loading a DSO module.