LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   modsecurity error on Apache2 (https://www.linuxquestions.org/questions/linux-server-73/modsecurity-error-on-apache2-532197/)

avallach 02-25-2007 06:02 AM

modsecurity error on Apache2
 
I have a strange problem with Apache 2.2. I've compiled mod_security, and the server loads the module:
Code:

krwawnik:~# apache2  -t -D DUMP_MODULES
Loaded Modules:
 core_module (static)
 (...)
 php5_module (shared)
 security2_module (shared)
 setenvif_module (shared)
 status_module (shared)
 userdir_module (shared)
Syntax OK

But when I put some config directives apache won't start and says:
Code:

Forcing reload of web server (apache2)...Syntax error on line 5 of /etc/apache2/mods-enabled/security.conf:
Invalid command 'SecFilterEngine', perhaps misspelled or defined by a module not included in the server configuration
 failed!

Have you got any ideas why it behaves like that ?

//---
Ooops I should rather put this topic in Linux-Software, sorry !

unSpawn 02-25-2007 07:32 AM

Have you got any ideas why it behaves like that ?
You didn't configure it properly. Here's an example. If you can't figure it out post your conf.

shezaf 02-25-2007 09:02 AM

ModSecurity 2
 
You are loading ModSecurity 2, while the directive that cause the error is in ModSecurity 1 syntax. If you would like to get help on how to convert rules from ModSecurity 1 to 2, look for the mainling list and the blog on modsecurity.org

~ Ofer
ModSecurity Core Rule Set project leader
CTO, Breach Security
ofers@breach.com

avallach 02-25-2007 11:31 AM

Oh big thank you :) Haven't spotted that the syntax has changed.
You guys never fail ! Huge thx !


All times are GMT -5. The time now is 05:53 PM.