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 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:
    1
    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:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page