Article:
  Introducing mod_security
Subject:   mod_security2 and SecRule
Date:   2006-10-31 08:45:33
From:   monicat
Any body know how to get SecRule to work with mod_security2.c ? I kept on getting this error message when I start my apache-2.2.3 server:
...
[truong@gendev-lnx 2.2.3]$ ./restart
Syntax error on line 41 of /home/truong/apache/2.2.3/conf/hole/mod_security2.conf:
Internal Error: Failed to add rule to the ruleset.
httpd not running, trying to start
...


And here is line 41 of my mod_security.conf file:
...
39 # Turn on Rule Engine
40 SecRuleEngine On
41 SecRule REQUEST_URI dirty
...


Is there something I have to turn on (e.g SecFilterEngine On) ?


Thanks for your help.


Main Topics Newest First

Showing messages 1 through 1 of 1.

  • mod_security2 and SecRule
    2006-10-31 08:55:03  Ivan Ristic | O'Reilly Author [View]

    Hmm, your configuration works for me here. Can I suggest you try two things? First upgrade to 2.0.4-dev1 and try again. If that does not work please join us on the mod-security-users mailing list (see here https://lists.sourceforge.net/lists/listinfo/mod-security-users).