9.2 Ensure KeepAlive Is Enabled


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'.


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.


Perform the following to implement the recommended state:

Add or modify the 'KeepAlive' directive in the Apache configuration to have a value of 'On'.

KeepAlive On

See Also