SV-256959r961167_rule
V-256959
SRG-APP-000266-WSR-000160
APWS-AT-000640
CAT II
10
For each Automation Controller NGINX web server, a system administrator must complete the following steps.
Verify the NGINX configuration file in use:
NGINXCONF=`nginx -V 2>&1 | tr ' ' '\n' | sed -ne '/conf-path/{s/.*conf-path=\(.*\)/\1/;p}' ` ; echo $NGINXCONF
Remove the error_log directive from the NGINX configuration file.
Cause NGINX to reload its configuration file:
pkill -HUP nginx
For each Automation Controller NGINX web server, a system administrator must check to determine if any error or debug information is being logged or generated:
NGINXCONF=`nginx -V 2>&1 | tr ' ' '\n' | sed -ne '/conf-path/{s/.*conf-path=\(.*\)/\1/;p}' ` ; cat $NGINXCONF | grep '^\s*error_log' && echo FAILED
If "FAILED" is displayed, this is a finding.
V-256959
False
APWS-AT-000640
For each Automation Controller NGINX web server, a system administrator must check to determine if any error or debug information is being logged or generated:
NGINXCONF=`nginx -V 2>&1 | tr ' ' '\n' | sed -ne '/conf-path/{s/.*conf-path=\(.*\)/\1/;p}' ` ; cat $NGINXCONF | grep '^\s*error_log' && echo FAILED
If "FAILED" is displayed, this is a finding.
M
5535