Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    50

    Default Pre Main Include or Post VirtualHost Include ?

    Hello !

    I need to make modifications to httpd.conf. So, I write the changes in the Post VirtualHost Include :

    ServerLimit 500
    MaxClients 500
    MaxRequestsPerChild 20000
    MaxKeepAliveRequests 50
    KeepAliveTimeout 1
    MinSpareServers 5
    MaxSpareServers 15

    But when I read topics in this forum, I see people write changes in Pre Main Include ?

    Which one should I choose then if :
    - I don't want to modify httpd.conf
    - and I want the changes to be kept when there is an update.

    Thank you !
    SecondSight
    *-*-*-*-*-*-*-*-*-*-**
    Want to learn !

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Try adding those here instead:

    WHM >> Service Configuration >> Apache Configuration >> Global Configuration

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    50

    Default

    Hello !

    I can't do it in Global configuration because you don't find all the settings there.
    SecondSight
    *-*-*-*-*-*-*-*-*-*-**
    Want to learn !

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by SecondSight View Post
    Hello !

    I can't do it in Global configuration because you don't find all the settings there.
    I'd suggest using the Global Configuration screen in the WHM mentioned by Infopro first to set all of the settings you need, as most of what you listed is available there. Then for the few others that aren't, I would drop them in the /usr/local/apache/conf/includes/pre_virtualhost_global.conf include. If you use pre_main, they'll be overwritten by the values cPanel defines in the main httpd.conf.
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  5. #5
    Member
    Join Date
    Jun 2004
    Posts
    50

    Default

    Hello !

    Ok. But then, why not use Post VirtualHost Include ?

    Thank you !
    SecondSight
    *-*-*-*-*-*-*-*-*-*-**
    Want to learn !

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by SecondSight View Post
    Hello !

    Ok. But then, why not use Post VirtualHost Include ?

    Thank you !
    I suppose there's no reason to *not* use it, just that you're not overwriting any virtualhost settings so there isn't an actual need to use the post_ instead of pre_.
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  7. #7
    Registered User
    Join Date
    Jun 2009
    Posts
    4

    Default Re: Pre Main Include or Post VirtualHost Include ?

    Quote Originally Posted by garrettp View Post
    I'd suggest using the Global Configuration screen in the WHM mentioned by Infopro first to set all of the settings you need, as most of what you listed is available there. Then for the few others that aren't, I would drop them in the /usr/local/apache/conf/includes/pre_virtualhost_global.conf include. If you use pre_main, they'll be overwritten by the values cPanel defines in the main httpd.conf.
    What about drop these settings in the /usr/local/apache/conf/includes/pre_virtualhost_global.conf include.

    <IfModule prefork.c>
    ServerLimit 10000
    StartServers 16
    MinSpareServers 16
    MaxSpareServers 64
    MaxClients 10000
    MaxRequestsPerChild 0
    </IfModule>

    Does It Work?

Similar Threads & Tags
Similar threads

  1. Where to place httpd.conf VirtualHost include files
    By Netmaking in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-13-2008, 05:36 AM
  2. Include Problem
    By ManXP in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 07-15-2008, 04:18 PM
  3. Include Pages?
    By jackal in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-04-2003, 10:17 PM
  4. CPanel Include
    By NetGeek in forum Themes and Branding
    Replies: 5
    Last Post: 07-19-2002, 03:10 AM
  5. include\'s and themes
    By fizz in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-04-2002, 01:25 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube