The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

KeepAlive Settings

Discussion in 'Workarounds and Optimization' started by mimran, Oct 28, 2010.

  1. mimran

    mimran Member

    Joined:
    Dec 16, 2007
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    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.
     
  3. mimran

    mimran Member

    Joined:
    Dec 16, 2007
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the help, Appreciate it.
     
Loading...

Share This Page