Rule ID
SV-240074r879692_rule
Version
V1R2
CCIs
Remote access to the web server is any access that communicates through an external, non-organization-controlled network. Remote access can be used to access hosted applications or to perform management functions. A web server can be accessed remotely and must be able to enforce remote access policy requirements or work in conjunction with enterprise tools designed to enforce policy requirements. vRA can be configured to redirect unencrypted, http port 80, traffic to use the encrypted, https port 443.
At the command prompt, execute the following command:
grep 'redirect scheme https' /etc/haproxy/conf.d/20-vcac.cfg
Note: the command should return this line:
'redirect scheme https if !{ ssl_fc }'
If the command does not return the expected line, this is a finding.Navigate to and open /etc/haproxy/conf.d/20-vcac.cfg
Navigate to the "frontend https-in" section.
In the "frontend https-in" section, add the 'redirect scheme https if !{ ssl_fc }' option before all 'acl' options.