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.

HTTPD.CONF Splitting Vhosts

Discussion in 'General Discussion' started by aceadoni, Jul 9, 2005.

  1. aceadoni

    aceadoni Member

    Joined:
    Jun 24, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Hamden,CT
    cPanel Access Level:
    Root Administrator
    I wan to do the following on one of my servers.

    Whenever a new client(vhost) is created I want a httpd.conf include created in /etc/httpd/vhosts with the vhost information for that client and I want that include to be put in the main httpd.conf. I know It can be done I just want an easy way to do it.

    Also is there any way to force the NameVirtual host directive on account creation. I also want to see all domains when I view apache status. It appears that if I don't sent the directive then it shows unavailible in the domain portion on the child process.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You'd have to hack /scripts/wwwacct, but you'll probably break a whole bunch of functionality in WHM and in cPanel if you do that. cPanel is not written to separate off the virtualhost containders into an Include file.

    The NameVirtualHost directive should created automatically when a new virtualhost container with an IP address is added anyway. If it's not, then you may be seeing a bug.
     
Loading...

Share This Page