SV-214279r612241_rule
V-214279
SRG-APP-000095-WSR-000056
AS24-U2-000090
CAT II
10
Determine the location of the "HTTPD_ROOT" directory and the "httpd.conf" file:
# httpd -V | egrep -i 'httpd_root|server_config_file'
-D HTTPD_ROOT="/etc/httpd"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Uncomment the "log_config_module" module line.
Configure the "LogFormat" in the "httpd.conf" file to look like the following:
LogFormat "%a %A %h %H %l %m %s %t %u %U \"%{Referer}i\" " common
Restart Apache: apachectl restart
NOTE: Your log format may be using different variables based on your environment, however it should be verified to be producing the same end result of logged elements.
In a command line, run "httpd -M | grep -i log_config_module".
If the "log_config_module" is not enabled, this is a finding.
Determine the location of the "HTTPD_ROOT" directory and the "httpd.conf" file:
# httpd -V | egrep -i 'httpd_root|server_config_file'
-D HTTPD_ROOT="/etc/httpd"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Search for the directive "LogFormat" in the httpd.conf file:
# cat /<path_to_file>/httpd.conf | grep -i "LogFormat"
If the "LogFormat" directive is missing or does not look like the following, this is a finding:
LogFormat "%a %A %h %H %l %m %s %t %u %U \"%{Referer}i\" " common
V-214279
False
AS24-U2-000090
In a command line, run "httpd -M | grep -i log_config_module".
If the "log_config_module" is not enabled, this is a finding.
Determine the location of the "HTTPD_ROOT" directory and the "httpd.conf" file:
# httpd -V | egrep -i 'httpd_root|server_config_file'
-D HTTPD_ROOT="/etc/httpd"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Search for the directive "LogFormat" in the httpd.conf file:
# cat /<path_to_file>/httpd.conf | grep -i "LogFormat"
If the "LogFormat" directive is missing or does not look like the following, this is a finding:
LogFormat "%a %A %h %H %l %m %s %t %u %U \"%{Referer}i\" " common
M
3997