Red Hat LINUX 7.2 Reference Manual page 217

Hide thumbs Also See for LINUX 7.2:
Table of Contents

Advertisement

Section 13.4:Adding Modules to Your Server
any compiler and/or linker flags. If you need more information on APXS, please see the Apache
documentation at http://httpd.apache.org/docs/dso.html.
Once you have compiled your module using APXS, put your module into /usr/lib/apache. Then
your module needs both a LoadModule line and an AddModule line in the httpd.conf file, just
as described previously for Apache's own modules. After the LoadModule list in httpd.conf,
add a line for the shared object file for your module like the following:
LoadModule foo_module
Note that you will need to change the name of the module and the name of your shared object file as
appropriate.
At the end of the AddModule list in httpd.conf, add a line for the source code file for your
module like the following:
AddModule mod_foo.c
Note that you will need to change the name of the source code file as appropriate.
Once you have completed the previous steps, stop and start your Web server as outlined in Section 13.2,
Starting and Stopping httpd . If you have done everything correctly and your module is correctly
coded, your Web server should find your module and load it in as it starts.
13.4.1 The mod_ssl Security Module
The mod_ssl security portion of the Web server is provided as a Dynamic Shared Object (DSO). This
means that if you recompile the Apache Web server you need to ensure that the EAPI extension patch
from mod_ssl is applied to your server. Follow the instructions for building mod_ssl into Apache
included with the mod_ssl documentation, but add the following flag:
--with-eapi-only
The complete command line should look like the following:
./configure [userflags] --with-eapi-only
Then build and install Apache.
Red Hat cannot support re-compiled versions of the Apache Web server. In-
stallation of the shipped version is supported, but if you re-compile Apache,
you are on your own. Please do not re-compile Apache unless you know ex-
actly what you are doing.
modules/mod_foo.so
Note
217

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LINUX 7.2 and is the answer not in the manual?

This manual is also suitable for:

Linux 7.2

Table of Contents