mimran

Member
Dec 16, 2007
13
0
51
My server config:
Intel Xeon 3470
4gigs RAM
250x2 HDD

I want to make few changes to keepAlive settings to optimise my server, how every when looking at httpd.conf I cannot find these settings to edit.

I also looked at Apache global config via WHM even there these settings are not there.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
25
143
Houston, TX
cPanel Access Level
Root Administrator
Not present by default

By default, there is no KeepAlive directive in the httpd.conf file. To add it, add it to an include file. The include file will be read when Apache starts. Either edit /usr/local/apache/conf/includes/pre_main_global.conf, or use Main >> Service Configuration >> Apache Configuration >> Include Editor and click "Pre Main Include".

Documentation for the Include Editor is available here:

Include Editor

You must place the directive in an include file; you cannot add it directly to the httpd.conf file. If you do add it directly to the httpd.conf file, it will be removed when you update or rebuild the Apache configuration, even if you run the Apache configuration distiller after editing the httpd.conf file.