1 |
Trying to prevent local local IP from appearing in log files. |
2 |
I have in modules.d/00_mod_log_config.conf |
3 |
|
4 |
DeflateFilterNote Input instream |
5 |
DeflateFilterNote Output outstream |
6 |
DeflateFilterNote Ratio ratio |
7 |
LogFormat '"%h %l %u %t \"%r\" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate |
8 |
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog |
9 |
SetEnvIf Remote_Addr "10\.0\.0\.109" dontlog |
10 |
CustomLog /var/log/apache2/access_log common env=!dontlog |
11 |
|
12 |
This setting worked in Apache 2.2 but Apache 2.4 is still logging all my localhost IP's. |