Bug 1294210 - Set "KeepAlive On" in Apache httpd default configuration
Summary: Set "KeepAlive On" in Apache httpd default configuration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: httpd
Version: 5.11
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-25 12:57 UTC by Federico Leva
Modified: 2021-01-14 09:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-04 10:40:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Federico Leva 2015-12-25 12:57:01 UTC
Apache webservers from RHEL, CentOS etc. override the default apache configuration and use "KeepAlive Off" instead of "KeepAlive On".
https://httpd.apache.org/docs/2.2/mod/core.html#keepalive

This has a significant performance cost, see for instance http://www.webpagetest.org/result/151225_S7_D1V/4/details/#connectionView

The problem may have been fixed in version 7 but should be backported to previous versions.

Version-Release number of selected component (if applicable):

Long-standing configuration override according to multiple sources. Seen in most RHEL apache 2.0 and 2.2 webservers online; I couldn't find a website using 2.3 or 2.4.

According to https://access.redhat.com/solutions/445713, RHEL 7 ships Apache 2.4 by default; https://www.linode.com/docs/websites/lamp/lamp-on-centos-7 and bug 1243887 imply that "KeepAlive On" is default (only) starting with 7,

How reproducible:

Always, with default configuration.

Steps to Reproduce:

Install apache, use default configuration, open any URL and see the webserver response.

Actual results:

Find "Connection: close" in it.

Expected results:

"KeepAlive On" by default in httpd configuration.

Comment 1 Joe Orton 2016-01-04 10:40:10 UTC
That's correct, KeepAlive is on by default from RHEL7.  There are no plans to change the default KeepAlive configuration at this point in the RHEL5 or RHEL6 lifecycle.


Note You need to log in before you can comment on or make changes to this bug.