Dirtbag's Blog

Installing mod_security on gentoo

[ link: mod_security | tags: gentoo apache | updated: Fri, 17 Apr 2020 12:12:08 -0400 ]

I was installing mod_security on my gentoo box and was getting "ModSecurity does not support content encodings" error.

After installing mod_security 2.1.2 from portage, apache 2.2.x would not stqart up and gave this cryptic error message in the error log:

 [Sun Feb 03 14:14:04 2008] [error] [client 10.10.33.5] ModSecurity: Warning. Operator EQ match: 0.
 [id "960903"] [msg "ModSecurity does not support content encodings"] [severity "WARNING"] 
  [hostname "newbox"] [uri "/horde/imp/"] [unique_id "z5hbuX8AAAEAAHDTqd4AAAAI"]

What I found out is that you have to disable mod_deflate in order to get mod_security to load in apache. in my /etc/apache2/httpd.conf, I commented out the line loading the module like so:

 #LoadModule deflate_module modules/mod_deflate.so 

-db

Like this article? Buy me a beer!