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.

How to customize eache virtualhost when it created?

Discussion in 'General Discussion' started by esupport.org.ua, Mar 6, 2007.

  1. esupport.org.ua

    esupport.org.ua Well-Known Member

    Joined:
    Nov 16, 2004
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Hi

    I need customize virtual host entriens in httpd.conf when it added by whm/cpanel
    How I can do it?
     
  2. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    as root, SSH into your server, and edit the /etc/httpd/conf/httpd.conf file :)
     
  3. esupport.org.ua

    esupport.org.ua Well-Known Member

    Joined:
    Nov 16, 2004
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    No, I don't want edit it manualiy. I just need change basic template for virtual host.
    Also I found it.
     
  4. Arven

    Arven Registered

    Joined:
    Mar 14, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Would you care to explain what you did to solve the problem?

    Thanks!
     
  5. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The VirtualHost template that cPanel uses is available at:

    /usr/local/cpanel/etc/httptemplates/apache1/default

    Conversely, the SSL VIrtualHost template is at:

    /usr/local/cpanel/etc/httptemplates/apache1/ssldefault

    I would recommend being very cautious when making changes to the template. Always make a copy of the template somewhere before making any changes, so that you can go back to it.

    I would also encourage you to vote for the enhancement at:

    http://bugzilla.cpanel.net/show_bug.cgi?id=3209

    which pertains to this.
     
Loading...

Share This Page