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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache Template

Discussion in 'EasyApache' started by Miguel G, Nov 16, 2016.

  1. Miguel G

    Miguel G Active Member

    Joined:
    Jun 4, 2015
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Twitter:
    It´s not solved in that thread if that´s what you meant. I don´t mind you answer there or here.

    I have seen the templates here /var/cpanel/templates/apache2_4/ssl_vhost.local as in the past I´ve been able to use those local templates to change the LogFormat from %h to %a.

    but honestly i see entries in the ssl_vhost.local that don´t match the ones in the virtualhosts of ssl websites in httpd.conf
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. Miguel G

    Miguel G Active Member

    Joined:
    Jun 4, 2015
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Twitter:
    It´s similar but I need to make sure that only in SSL vhosts are affected
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  5. Miguel G

    Miguel G Active Member

    Joined:
    Jun 4, 2015
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Twitter:
    I managed to do it overriding using /var/cpanel/templates/apache2_4/ssl_vhost.default and renaming it as ssl_vhost.local

    I don´t know how to disable CustomLog using include files.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I'm happy to see you were able to find a solution to the issue. Regarding the include files, LogFormat entries are supported in individual virtual hosts. This document explains how it works:

    mod_log_config - Apache HTTP Server Version 2.4

    Thank you.
     
Loading...

Share This Page