SV-214292r612241_rule
V-214292
SRG-APP-000266-WSR-000142
AS24-U2-000620
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"
Add a default document to the applicable directories.
View the "DocumentRoot" value by entering the following command:
awk '{print $1,$2,$3}' <'INSTALL PATH'>/conf/httpd.conf|grep -i DocumentRoot|grep -v '^#'
Note each location following the "DocumentRoot" string. This is the configured path(s) to the document root directory(s).
To view a list of the directories and subdirectories and the file "index.html", from each stated "DocumentRoot" location enter the following commands:
find . -type d
find . -type f -name index.html
Review the results for each document root directory and its subdirectories.
If a directory does not contain an "index.html" or equivalent default document, this is a finding.
V-214292
False
AS24-U2-000620
View the "DocumentRoot" value by entering the following command:
awk '{print $1,$2,$3}' <'INSTALL PATH'>/conf/httpd.conf|grep -i DocumentRoot|grep -v '^#'
Note each location following the "DocumentRoot" string. This is the configured path(s) to the document root directory(s).
To view a list of the directories and subdirectories and the file "index.html", from each stated "DocumentRoot" location enter the following commands:
find . -type d
find . -type f -name index.html
Review the results for each document root directory and its subdirectories.
If a directory does not contain an "index.html" or equivalent default document, this is a finding.
M
3997