Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

HTTPD.CONF Splitting Vhosts

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

  1. aceadoni

    aceadoni Member

    Jun 24, 2004
    Likes Received:
    Trophy Points:
    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 Verifed Vendor

    Jun 15, 2002
    Likes Received:
    Trophy Points:
    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice