Faqts : Business : Internet : Web Servers : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

46 of 48 people (96%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

Is there anyway to suppress certain IP's in apache log files, without greping them?

Oct 27th, 2001 02:42
emilio brambilla, James Michini,


here a way to disallow logging from 127.0.0.1 (if you have more than one
ip to block add multiple SetEnvIf line)

SetEnvIf Remote_Addr "127\.0\.0\.1" nolog
CustomLog logs/access_log common env=!nolog