9.4 Ensure KeepAliveTimeout is Set to a Value of 15 or Less

Information

The KeepAliveTimeout directive specifies the number of seconds Apache will wait for a subsequent request before closing a connection that is being kept alive.

Rationale:

The KeepAliveTimeout directive is used mitigate some of the risk, by requiring more effort for a successful DoS attack. By enabling KeepAlive and keeping the timeout relatively low for old connections and we allow the server to free up resources more quickly and be more responsive.

Solution

Perform the following to implement the recommended state:
Add or modify the KeepAliveTimeout directive in the Apache configuration to have a value of 15 or less.

KeepAliveTimeout 15

Default Value:

KeepAliveTimeout 5

See Also

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