4.2.12 Ensure `httpPort` attribute set to `-1`

Information

Disabling the http port in the server configuration ensures that only the secure https protocol will be used to access the web applications. HTTPS protocol protects the integrity and confidentiality of data between the client and the server.

Disabling the HTTP port forces communication to use the HTTPS port which is encrypted to give better defense against man-in-the-middle attacks.

Solution

Set the httpPort attribute to -1 in the httpEndpoint element in ${server.config.dir}/configDropins/overrides/*.xml

<httpEndpoint ... httpPort="-1"/>

See Also

https://workbench.cisecurity.org/benchmarks/7724

Item Details

Category: ACCESS CONTROL, IDENTIFICATION AND AUTHENTICATION, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|AC-17(2), 800-53|IA-5, 800-53|IA-5(1), 800-53|SC-8, 800-53|SC-8(1), CSCv7|14.4

Plugin: Unix

Control ID: e34d868e979efe77e91cc87ce65ecbbbda56466de475b37b677a94b2b673d439