Nginx + ModSecurity 报错
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 报错相关推荐
- Nginx配置报错unknown directive echo的解决
Nginx配置报错unknown directive "echo"的解决 实际上,Nginx并没有内置echo这个指令,所以你贸然使用时,自然会提示说无法识别的指令.它是由agen ...
- 启动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 ...
- Nginx 启动报错 “/var/run/nginx/nginx.pid failed”
问题: 重启虚拟机后,再次重启nginx会报错: open() "/var/run/nginx/nginx.pid" failed (2: No such file or dire ...
- nginx 启动报错 “/var/run/nginx/nginx.pid“ failed” 解决方法
nginx 启动报错 "/var/run/nginx/nginx.pid" failed" 解决方法 参考文章: (1)nginx 启动报错 "/var/run ...
- 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 利 ...
- 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 ...
- Faithfully yours, nginx. 启动nginx访问报错
An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again la ...
- nginx 10054报错问题解决方案
nginx 10054报错问题解决方案 参考文章: (1)nginx 10054报错问题解决方案 (2)https://www.cnblogs.com/Jiphen/p/9685047.html 备忘 ...
- nginx 启动报错
systemctl start nginx 启动报错 报错内容如下: Job for nginx.service failed because the control process exited w ...
最新文章
- 一个大浪Java罢工(一个)安装JDK和环境变量配置
- react 封装表格组件_React--封装的表单组件
- reactor多线程模型_Netty运用Reactor模式到极致
- mozjpeg:JPEG图片压缩5%,获Facebook支持
- 从发小(一起长大的玩伴)聚会引发的思考
- Note cancel request的实现原理
- 转:iOS-CoreLocation:无论你在哪里,我都要找到你!
- 在运行时打开GC日志记录
- HDU-Largest Rectangle in a Histogram-1506 单调栈
- python开源嵌入式_Neo4j 推出基于 Python 的嵌入式图数据存储
- SQL2005 安装时 “性能监视器计数器要求(错误)” 解决方案
- 文件上传fileupload文件接收
- printf 小函数 大问题-转
- 扑克牌自定义排序,使用集合TreeSet实现实体对象排序,通过实现Comparable接口,重写compareTo比较器;
- Pycharm 2018 1.2版本 Mac注册码激活码
- eclipse 远程链接访问hadoop 集群日志信息没有输出的问题l
- 服务器server操作系统吗,windows server 2008 R2 操作系统
- 春节没事,看几部黑客电影吧!
- java 生成纯色图片_Java设置PPT幻灯片背景——纯色、渐变、图片背景
- web绿色服务器单文件,Web个人临时共享服务器