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.

Suggestion: Apache "include" directive for vhosts config?

Discussion in 'EasyApache' started by movielad, Aug 30, 2005.

  1. movielad

    movielad Well-Known Member
    PartnerNOC

    Joined:
    May 14, 2003
    Messages:
    107
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    DataCenter Provider
    Would it make more sense for cPanel to adopt a separate vhosts config file away from the main httpd.conf to avoid (or rather REDUCE) the possibility of completely mucking up the whole of httpd.conf? I've seen my httpd.conf become pretty mucky after just adding a couple of new accounts and goodness knows what somebody's httpd.conf looks like when they have several hundred! A simple 'include' directive would be all it took and the cPanel software to recognise that anything relating to an individual virtual host must go in that file.

    It's even possible to have a separate file per virtual host, but I can see there being issues with that..

    Just a thought, anyway.

    M.
     
  2. shashank

    shashank Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    159
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I have personally never seen anyone having much issues with a single file. Unless sometimes server goes into mess. But it does not matter that much to be frank for a preperly tuned system.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I must say that I hate systems that have a separate Include file for every VirtualHost container - it's a real pain in the arse (ensim comes to mind). I wouldn't be averse to having all the VirtualHosts in a single separate file, but not split up.
     
  4. timdorr

    timdorr Well-Known Member
    PartnerNOC

    Joined:
    Jul 9, 2002
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Atlanta, GA
    Plus, it increases the open file count. Sure, you can boost that with ulimit, but it's not as efficient with a ton of files open (which is why I wish Apache didn't open up every log file until it was requested...).
     
Loading...

Share This Page