HI,
I'm having a problem with libmodsecurity (Modsecurity 3.0.3-114) or Nginx or both, I can't tell which. Everytime I try to start Nginx on Ubuntu 18.04, it throws the following error:
nginx: [emerg] "modsecurity_rules_file" directive Rules error. File: /usr/local/nginx/conf/modsecurity/../rules/REQUEST-910-IP-REPUTATION.conf. Line: 73. Column: 22. This version of ModSecurity was not compiled with GeoIP or MaxMind support.
I originally installed GeoIP which didn't work and then I installed MaxMind which didn't work either.
When I compile libmodsecurity it looks like it finds GeoIP/MaxMind:
Optional dependencies
+ GeoIP/MaxMind ....found
* (MaxMind) v1.4.2
-lmaxminddb , -DWITH_MAXMIND -I/usr/include/x86_64-linux-gnu
* (GeoIP) v1.6.12
-lGeoIP , -I/usr/include/
I tried compiling with -with-maxind=yes and with -with-geoip=yes flags still same problem.
I compile nginx with either the -with-http_geoip_module OR -with-http_geoip_module=dynamic flags same error.
I'm not sure where to go from there. The only way I can get Nginx to start without throwing that error is to remove the REQUEST-910-IP-REPUTATION.conf rule.
I would appreciate some help.
Thanks!
|