Results 1 to 4 of 4

Thread: Add virtualhost to httpd.conf

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    2

    Default Add virtualhost to httpd.conf

    I need to add a virtualhost to httpd.conf, but when i add it, the distiller goes through with the operation, then i rebuild, and my change is gone!

  2. #2
    cPanel Support Manager
    Join Date
    Dec 2010
    Location
    Texas
    Posts
    99
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Add virtualhost to httpd.conf

    The distiller is for distilling changes to existing configurations that cPanel & WHM itself creates and maintains. If you want to add a new VirtualHost altogether, the distiller can't help you there.

    To add a brand new VirtualHost, your best bet is going to be to add it to either the pre-VirtualHost include file or post-VirtualHost include file. This will place your VirtualHost entry either before all of cPanel's generated VirtualHosts or after all of cPanel's generates VirtualHosts respectively.

    The include files can be edited via:

    WHM -> Apache Configuration -> Include Editor

    They're located at /usr/local/apache/conf/includes/ if you'd rather modify them directly.

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    2

    Default Re: Add virtualhost to httpd.conf

    Nope, Didnt work :/

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Add virtualhost to httpd.conf

    What are you trying to add specifically? Please provide what is being added and the purpose of what is being added, so we know what you are attempting to do.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. Replies: 1
    Last Post: 07-09-2011, 11:47 PM
  2. where can i find the virtualhost info that goes into httpd.conf
    By rs-freddo in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 03-16-2009, 05:36 PM
  3. httpd.conf virtualhost entry
    By useradmin in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 03-27-2008, 09:47 AM
  4. Deleting virtualhost entries in httpd.conf?
    By Vatoloco in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 07-19-2005, 01:34 AM
  5. auto-add entry in VirtualHost of httpd.conf ?
    By pats in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 03-22-2003, 10:54 PM