AS24-U1-000010 - The Apache web server must limit the number of allowed simultaneous session requests - KeepAlive

Information

Apache web server management includes the ability to control the number of users and user sessions that utilize an Apache web server. Limiting the number of allowed users and sessions per user is helpful in limiting risks related to several types of denial-of-service (DOS) attacks.

Although there is some latitude concerning the settings, they should follow DoD-recommended values and be configurable to allow for future DoD direction. While the DoD will specify recommended values, the values can be adjusted to accommodate the operational requirements of a given system.

Solution

Determine the location of the 'HTTPD_ROOT' directory and the 'httpd.conf' file:

# apachectl -V | egrep -i 'httpd_root|server_config_file'
-D HTTPD_ROOT='/etc/httpd'
-D SERVER_CONFIG_FILE='conf/httpd.conf'

Note: The apachectl front end is the preferred method for locating the Apache httpd file. For some Linux distributions, 'apache2ctl -V' or 'httpd -V' can also be used.

Set the 'KeepAlive' directive to a value of 'on'; add the directive if it does not exist.

Set the 'MaxKeepAliveRequests' directive to a value of '100' or greater; add the directive if it does not exist.

Restart Apache: apachectl restart

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apache_Server_2-4_Unix_Y24M07_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-10, CAT|II, CCI|CCI-000054, Rule-ID|SV-214228r960735_rule, STIG-ID|AS24-U1-000010, STIG-Legacy|SV-102685, STIG-Legacy|V-92597, Vuln-ID|V-214228

Plugin: Unix

Control ID: 9449c9d2797e4e25f72503860adc4ca70d2846c95c2f5a8cb364474fa3628382