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

    Default HTTPD.CONF Splitting Vhosts

    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. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Faulty httpd.conf - can't rebuild with rebuildhttpd.conf
    By movielad in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-21-2011, 12:43 PM
  2. Preserve amends to /etc/httpd/conf/httpd.conf ?
    By robocrop in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-14-2010, 02:08 AM
  3. httpd.conf sites/www.domain.com.conf Wildcard DNS
    By ttremain in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-16-2008, 11:19 AM
  4. Daily httpd restart changes AllowOverride None to All in httpd.conf
    By Lasers in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 02-26-2007, 12:17 PM
  5. Httpd Conf Vhosts Gone!
    By brentp in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-13-2004, 12:17 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube