我想创建一个应用程序来监控设备网络流量和权限。
为此,我想配置本地模式安全,使用 I此程序但是当我安装 modesecurity 时出现以下错误:
sudo service apache2 reload
* Reloading web server apache2 *
* The apache2 configtest failed. Not doing anything.
Output of config test was:
AH00526: Syntax error on line 225 of /etc/modsecurity/modsecurity.conf:
Invalid command 'SecStatusEngine', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
阅读完此消息后,我转到文件/etc/modsecurity/modsecurity.conf
并检查了第 225 行,发现以下语句:
SecStatusEngine On
我尝试启用security2
模块,但之后出现相同的错误sudo service apache2 restart
:
$ sudo a2enmod security2
Considering dependency unique_id for security2:
Module unique_id already enabled
Module security2 already enabled
那么有人可以帮我解决这个问题吗?