File: INSTALL

package info (click to toggle)
libapache-mod-security 1.8.7-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,132 kB
  • ctags: 664
  • sloc: ansic: 7,641; perl: 199; makefile: 59; sh: 44
file content (38 lines) | stat: -rw-r--r-- 882 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

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=securiy

    3. Compile and install as usual