
INSTALL
=======


DSO
---

Compiling the module as a dynamic library is easy. Go to
the folder that contains the source code for your Apache
branch, and type the following:

    apxs -cia mod_security.c
    apachectl stop
    apachectl start

Of course, now you need to add mod_security specific
directives to make it do something. Take a look at files
httpd.conf.example-minimal or httpd.conf.example-full to
get some idea of that to do. Or even better, read the manual.


Apache 1.x static compilation
-----------------------------

To compile the module into the body of the web server do
the following:

    1. Copy the file mod_security.c to /src/modules/extra

    2. Configure Apache distribution with two additional
       configuration options:

       --activate-module=src/modules/extra/mod_security
       --enable-module=security

    3. Compile and install as usual

