Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: [gentoo-user] Apache - prevent local ip from log files
Date: Sat, 02 Jan 2021 09:11:16
Message-Id: 624bde18-7322-bb21-3769-2781a357d9de@sys-concept.com
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.