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 Apache Logs

Discussion in 'EasyApache' started by sgtcory, Mar 20, 2012.

  1. sgtcory

    sgtcory Registered

    Joined:
    Mar 20, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    I am trying in vain to get my custom log format to work. I would like cookies added to the default - combined log format. I've attempted to add it to single Virtual Host containers but the distiller just doesn't like it.

    Anyone had any success in using this format at all?

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" combined
     
  2. sgtcory

    sgtcory Registered

    Joined:
    Mar 20, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    maybe a little more clarification -

    Does anyone have any ideas how to get custom logs to work for all Virtual Hosts?
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,809
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You may want to try using the instructions at:

    Custom Directives outside of a VirtualHost Tag

    If this fails to work, could you let us know if you are receiving a specific error, or if the httpd.conf is not modified when you rebuild it via:

    Code:
    # /scripts/rebuildhttpdconf
    Thank you.
     
    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