Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Adding Common Modules > 2.9. Installing mod_security

2.9. Installing mod_security

Problem

You want to install the mod_security module to take advantage of its simple and powerful filtering mechanisms.

Solution

  1. Download mod_security and the core rules from http://modsecurity.org/download.

    Tip

    After downloading, you should verify the PGP signature to make sure the file hasn’t been altered. See the mod_security Web site for details.

  2. Unpack the kit (not the rules) into a working directory:

    % cd /usr/local/build
    %tar xzf /usr/local/kits/modsecurity-apache_2.1.1
  3. Move into the unpacked directory, and build the package using the supplied Makefile. Specify the value of your ServerRoot on the make command line:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint