PassEnv variable MODSEC_ENABLE was undefined Solution
ModSecurity error
Solution:
It doesn't exist. In fact, the /usr/local/apache/logs/data directory doesn't exist. So, I created it, then set owner to 'nobody' -- and now the error messages have gone away. /usr/local/apache/logs/data now looks like this:
however, /usr/local/apache/logs/error_log now has these new warnings:
on the other hand, I also see these:
so, it seems to be working.
(it blocked a russian ip. later on, it blocked a bulgarian ip. we're not expecting russian or bulgarian logins)
Code:
./ ../ ip.dir ip.pag user.dir user.pag
Code:
[Tue May 06 18:11:30 2014] [warn] PassEnv variable MODSEC_ENABLE was undefined
Code:
[Tue May 06 18:13:18 2014] [error] [client 149.154.64.114] ModSecurity: Access denied with code 401 (phase 2). Operator GT matched 0 at USER:bf_block. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "11"] [id "5000135"] [msg "ip address blocked for 5 minutes, more than 15 login attempts in 3 minutes."]
(it blocked a russian ip. later on, it blocked a bulgarian ip. we're not expecting russian or bulgarian logins)
0 Comments