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!

Custom Virtualhost config

Discussion in 'General Discussion' started by ttremain, Jul 13, 2010.

  1. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    I wish to add env=!nolog to the end of

    CustomLog /usr/local/apache/domlogs/mydomain.com combined

    in httpd.conf. However if I run:
    /usr/local/cpanel/bin/build_apache_conf

    My change goes away. How do I make this change withstand the httpd.conf rebuild?

    Thanks in advance
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 ttremain, Jul 13, 2010
    Last edited: Jul 13, 2010
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,544
    Likes Received:
    9
    Trophy Points:
    268
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I recommend applying the customization to a custom virtual host template; that is, create a copy of the default virtual host template then apply modifications to the customized "local" copy. For more in-depth detail and information please reference the following documentation: Changes Contained within a VirtualHost Directive - Custom Templates < Custom Directives < Apache & cPanel/WHM
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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