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.

How do I exclude IP from logs in EA3

Discussion in 'General Discussion' started by Morley, Mar 9, 2009.

  1. Morley

    Morley Well-Known Member

    Joined:
    Apr 24, 2007
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    I'm trying to exclude my IP from the Apache logs using Main >> Service Configuration >> Apache Configuration.

    I added: SetEnvIf Remote_Addr "123.456.789.123" dontlog to the Pre VirtualHost Include.
    Then added CustomLog /usr/local/apache/domlogs/mydomain.com common env=!dontlog to the /usr/local/apache/conf/userdata/std/2/username/hostname/custom.conf, restarted Apache but the domlogs are still logging my IP address.

    Could someone please describe the correct process for excluding an IP address from the Apache logs with EA3?

    Thanks
     
  2. Morley

    Morley Well-Known Member

    Joined:
    Apr 24, 2007
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    I still haven't figured this out. Anyone know how to exclude an IP address globally using WHM Apache Include Files?

    Thanks
     
Loading...

Share This Page