Apache HTTP Server
TMA-APACHE-2.2
Ensure the Log Config Module Is Enabled
中级别 1自动化apache
说明
The log_config module provides for flexible logging of client requests, and provides for the configuration of the information in each log. Compliant when log_config_module is loaded. Uses the module list from apachectl -M (apache2ctl/httpd; needs root).
检查方式
审计方法: Shell 命令
shell
b=$(command -v apache2ctl || command -v apachectl || command -v httpd) || exit 1; m=$("$b" ${APACHE_CONF:+-f "$APACHE_CONF"} -M 2>/dev/null) || exit 1; printf '%s\n' "$m" | grep -Eiq 'log_config_module' && echo compliant || echo noncompliant- 预期输出
compliant
修复方式
修复方法: 操作指南或基础设施补丁
Load mod_log_config (LoadModule log_config_module modules/mod_log_config.so; a2enmod log_config is static on Debian). Then run apachectl configtest and reload Apache.
属性
- 操作系统
- 任意
- 标签
- apachemodules
- 参考
- CIS Apache HTTP Server 2.4 Benchmark v2.4.0 - 2.2 Ensure the Log Config Module Is Enabled
检查本机
请在您有权审计的机器上运行此命令。扫描为只读操作。
shell
tmaegis scan --target apache