
2.5 Adding Modules to Your Server 35
To make your secure web serverload in anunloaded module, firstuncom-
ment the corresponding LoadModule line. For example, if you wanted to
make your secure web server load in the mime magic module, change
that LoadModule line from the original:
#LoadModule mime_magic_module lib/apache/mod_mime_magic.so
Uncomment the previous line so that it reads:
LoadModule mime_magic_module lib/apache/mod_mime_magic.so
Next,youneedto uncommentthecorrespondinglinefromtheAddModule
section in httpd.conf. To continue with our previous example, uncom-
ment the mod mime magic line. The original (default) line looks like the
following:
#AddModule mod_mime_magic.c
The uncommented line should read:
AddModule mod_mime_magic.c
Once you’ve uncommented the LoadModule and AddModule lines for
the module that you want to load in, stop and start your web server, as
covered in section 2.7 on page 40. After starting, the module should be
loaded in to your secure web server.
If you have your own module, you can add it to the httpd.conf file so
that it is compiled in and loaded as a DSO. If you want to do this, you
need to have installed the devel package during the installation process,
ascoveredinsection 1.4on page9. Youneedthedevel packagebecauseit
installsthe include files,theheaderfiles andtheAPacheeXtenSion (APXS)
support tool. APXS uses the include files and the header files to compile
your module so that it will work with Apache.
If you’ve written your own module or are borrowing someone else’s, you
should be able to use APXS to compile your home-made module sources
Commenti su questo manuale