9.2 Ensure KeepAlive Is Enabled

Information

The KeepAlive directive controls whether Apache will reuse the same TCP connection per client to process subsequent HTTP requests from that client. It is recommended that the KeepAlive directive be set to On.

Rationale:

Allowing per-client reuse of TCP sockets reduces the amount of system and network resources required to serve requests. This efficiency gain may improve a server's resiliency to DoS attacks.

Solution

Perform the following to implement the recommended state:
Add or modify the KeepAlive directive in the Apache configuration to have a value of On, so that KeepAlive connections are enabled.

KeepAlive On

Default Value:

KeepAlive On

See Also

https://workbench.cisecurity.org/files/4548