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.

Custom Virtualhost config

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

  1. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    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
     
    #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,557
    Likes Received:
    7
    Trophy Points:
    38
    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
     
Loading...

Share This Page