25 Feb
2006
25 Feb
'06
17:14
On Saturday 25 February 2006 12:48, Per Jessen wrote:
teck wrote:
id like to remove specified ip's from my apache access_log and error_log file and place them in newly defined logs.
You need to use a combination of setenvif and customlog.
This is a quick rework of an apache exmaple:
SetEnvIf Remote_Addr "1.2.3.4" log1 specificip SetEnvIf Remote_Addr "1.2.3.5" log2 specificip
CustomLog logs/logfile1 common env=log1 CustomLog logs/logfile2 common env=log2 CustomLog logs/access_log common env=!specificip
/Per Jessen, Zürich k thanks... this works but :) it still logs the ip to the access_log as well? i added the lines to the end of httpd.conf if position would matter?