【问题标题】:mod_security prevents Apache from starting - no errorsmod_security 阻止 Apache 启动 - 没有错误
【发布时间】:2014-05-19 09:29:13
【问题描述】:

我在我的 Apache 2.4 安装上安装了 mod_security 2.8.0。我将 yajl.dll 复制到我的 bin 文件夹中,将 .so 文件复制到我的模块中,按照自述文件的建议添加了配置,但是当我启动 Apache 时,它​​失败了。

但只有在我指定规则时它才会失败(我尝试了很多不同的规则,一次一个)。每次有规则,Apache就无法启动。

如果我只去

SecRuleEngine On
SecDefaultAction "deny,phase:2,status:403"

然后它工作正常。错误日志只显示:

[Mon May 19 11:24:10.010299 2014] [:notice] [pid 2820:tid 496] ModSecurity for Apache/2.8.0 (http://www.modsecurity.org/) configured.
[Mon May 19 11:24:10.010299 2014] [:notice] [pid 2820:tid 496] ModSecurity: APR compiled version="1.5.0"; loaded version="1.5.0"
[Mon May 19 11:24:10.010299 2014] [:notice] [pid 2820:tid 496] ModSecurity: PCRE compiled version="8.34 "; loaded version="8.34 2013-12-15"
[Mon May 19 11:24:10.010299 2014] [:notice] [pid 2820:tid 496] ModSecurity: LUA compiled version="Lua 5.1"
[Mon May 19 11:24:10.010299 2014] [:notice] [pid 2820:tid 496] ModSecurity: LIBXML compiled version="2.9.1"

即没有错误。如果我添加了一个配置错误的规则(缺少 ID),它将在此处记录,但正如您所见,它没有 - 但 Apache 不会启动。

系统是 Windows Server 2008 R2 64 位。

【问题讨论】:

    标签: apache security mod-security


    【解决方案1】:

    我不知道这是否有帮助,但我在几分钟前遇到了这个问题,并诊断出 mod_security 安装将我的 httpd_conf 中的服务器根目录更改为“c:/apache24/”,而我的文件中没有这样的文件系统,我将它改回“c:/xampp/apache/”,它再次启动正常,没有问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-13
      • 2010-11-20
      • 2017-02-11
      • 2016-03-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多