mod_security installation problem

tsiou

Verified User
Joined
Sep 15, 2006
Messages
236
Location
Larisa, Greece
Hi,
I need some help on installing mod_security.

i installed it by the ports (mod_security21),
added in httpd.conf :
<IfModule security2_module>
Include /etc/httpd/conf/modsecurity.conf
</IfModule>

and in modsecurity.conf some rules...

In my logs when i restart apache i get :

[Sat Jun 28 01:57:52 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/local/sbin/suexec)
[Sat Jun 28 01:57:52 2008] [notice] ModSecurity for Apache 2.1.7 configured


but i dont get the log file i specified in modsecurity.conf

I believe that the module gets loaded but it doesnt use the rules.. And i dont get anything weird in error_log

Thanks in advance.
 

tsiou

Verified User
Joined
Sep 15, 2006
Messages
236
Location
Larisa, Greece
Problem solved.
I've just removed the ifmodule directives and all worked.
For some strange reason ifmodule didnt work.
 
Top