How do I exclude IP from logs in EA3

Morley

Well-Known Member
Apr 24, 2007
66
0
156
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
 

Morley

Well-Known Member
Apr 24, 2007
66
0
156
I still haven't figured this out. Anyone know how to exclude an IP address globally using WHM Apache Include Files?

Thanks