This version of ModSecurity was not compiled with GeoIP or MaxMind support

nginx集成modsecurity启动报错

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. in /usr/local/nginx/conf/nginx.conf:21

因为没有编译 GeoIP 。如果暂时不需要此功能,注释这条规则

#SecRule TX:HIGH_RISK_COUNTRY_CODES "!@rx ^$" \
#    "id:910100,\
#    phase:2,\
#    block,\
#    t:none,\
#    msg:'Client IP is from a HIGH Risk Country Location.',\
#    logdata:'%{MATCHED_VAR}',\
#    tag:'application-multi',\
#    tag:'language-multi',\
#    tag:'platform-multi',\
#    tag:'attack-reputation-ip',\
#    tag:'paranoia-level/1',\
#    severity:'CRITICAL',\
#    chain"
#    SecRule TX:REAL_IP "@geoLookup" \
#        "chain"
#        SecRule GEO:COUNTRY_CODE "@within %{tx.high_risk_country_codes}" \
#            "setvar:'tx.anomaly_score_pl1=+%{tx.critical_anomaly_score}',\
#            setvar:'ip.reput_block_flag=1',\
#            setvar:'ip.reput_block_reason=%{rule.msg}',\
#            expirevar:'ip.reput_block_flag=%{tx.reput_block_duration}'"

Nginx + ModSecurity 报错相关推荐

  1. Nginx配置报错unknown directive echo的解决

    Nginx配置报错unknown directive "echo"的解决 实际上,Nginx并没有内置echo这个指令,所以你贸然使用时,自然会提示说无法识别的指令.它是由agen ...

  2. 启动nginx服务报错Job for nginx.service failed because the control process exited with error code.

    nginx使用service nginx restart报错 启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control p ...

  3. Nginx 启动报错 “/var/run/nginx/nginx.pid failed”

    问题: 重启虚拟机后,再次重启nginx会报错: open() "/var/run/nginx/nginx.pid" failed (2: No such file or dire ...

  4. nginx 启动报错 “/var/run/nginx/nginx.pid“ failed” 解决方法

    nginx 启动报错 "/var/run/nginx/nginx.pid" failed" 解决方法 参考文章: (1)nginx 启动报错 "/var/run ...

  5. Nginx启动报错:error while loading shared libraries: libpcre.so.1

    1. Nginx的安装 1.1 准备安装包 pcre-8.37.tar.gz openssl-1.0.1t.tar.gz zlib-1.2.8.tar.gz nginx-1.17.1.tar.gz 利 ...

  6. Linux Nginx启动报错:Failed at step EXEC spawning /etc/rc.d/init.d/nginx: Exec format error.

    目录 场景 报错 原因 解决 场景 systemd启动nginx systemctl start nginx.service 报错 报错第一行为 Failed at step EXEC spawnin ...

  7. Faithfully yours, nginx. 启动nginx访问报错

    An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again la ...

  8. nginx 10054报错问题解决方案

    nginx 10054报错问题解决方案 参考文章: (1)nginx 10054报错问题解决方案 (2)https://www.cnblogs.com/Jiphen/p/9685047.html 备忘 ...

  9. nginx 启动报错

    systemctl start nginx 启动报错 报错内容如下: Job for nginx.service failed because the control process exited w ...

最新文章

  1. 一个大浪Java罢工(一个)安装JDK和环境变量配置
  2. react 封装表格组件_React--封装的表单组件
  3. reactor多线程模型_Netty运用Reactor模式到极致
  4. mozjpeg:JPEG图片压缩5%,获Facebook支持
  5. 从发小(一起长大的玩伴)聚会引发的思考
  6. Note cancel request的实现原理
  7. 转:iOS-CoreLocation:无论你在哪里,我都要找到你!
  8. 在运行时打开GC日志记录
  9. HDU-Largest Rectangle in a Histogram-1506 单调栈
  10. python开源嵌入式_Neo4j 推出基于 Python 的嵌入式图数据存储
  11. SQL2005 安装时 “性能监视器计数器要求(错误)” 解决方案
  12. 文件上传fileupload文件接收
  13. printf 小函数 大问题-转
  14. 扑克牌自定义排序,使用集合TreeSet实现实体对象排序,通过实现Comparable接口,重写compareTo比较器;
  15. Pycharm 2018 1.2版本 Mac注册码激活码
  16. eclipse 远程链接访问hadoop 集群日志信息没有输出的问题l
  17. 服务器server操作系统吗,windows server 2008 R2 操作系统
  18. 春节没事,看几部黑客电影吧!
  19. java 生成纯色图片_Java设置PPT幻灯片背景——纯色、渐变、图片背景
  20. web绿色服务器单文件,Web个人临时共享服务器

热门文章

  1. 在MATLAB环境下使用深度学习网络DeepLabV3+进行语义分割(云图分割)
  2. 贝尔曼福特_福特自行车之旅
  3. vue使用axios配置多域名
  4. MOT 指标汇总 (详讲 说明 含义 )
  5. 浏览器兼容性总结: IE 火狐 谷歌 360 搜狗
  6. 关于DoEvents
  7. python如何根据数据画散点图_用python绘制散点图
  8. 基于SABR模型的期权波动率曲线套利策略
  9. 用1元钱买到原价万元的电脑是什么体验?
  10. 在ArduPilot旋翼机上安装PX4Flow光流传感器