[tor-mirrors] Privacy respecting logging
Traumschule
traumschuleriebau at riseup.net
Tue Nov 6 09:36:23 UTC 2018
Thanks a lot for your input!
Please review this commit and correct if necessary:
https://github.com/torproject/webwml/pull/67
On Tue, 23 Oct 2018 18:43:26 -0400
Adam Quenneville <adam.quenneville at freemirror.org> wrote:
> Hi all,
>
> You can surely use mods if need be, but for Apache2, I've found it's
> easiest just to use the CustomLog directive:
>
> CustomLog /path/to/desired/log/location "0.0.0.0 %l %u %t \"%r\" %>s
> %b"
>
> This just makes every user show up as 0.0.0.0. Which makes it plug
> and play with something like AWstats, or any other log-analysis
> software.
>
> Simple and fast. Works for us.
>
> Adam
> On 2018-10-23 6:13 PM, Alexander Dietrich wrote:
> >
> > nginx logging is documented here:
> > https://nginx.org/en/docs/http/ngx_http_log_module.html
> >
> > The default log format is given as:
> >
> > log_format combined '$remote_addr - $remote_user [$time_local] '
> > '"$request" $status $body_bytes_sent '
> > '"$http_referer" "$http_user_agent"';
> >
> > So if you wanted to suppress IP and user information, while staying
> > compatible with the Common Log Format, and drop the HTTP Referer
> > and User-Agent fields, you could add these lines to your nginx.conf:
> >
> > log_format privacy '- - - [$time_local] "$request" $status
> > $body_bytes_sent';
> > access_log /var/log/nginx/access.log privacy;
> >
> > You may need to change the second line if your nginx log files are
> > not in /var/log/nginx.
> >
> > Kind regards,
> > Alexander
--
traumschule.org
gpg fingerprint:
9356 4DED 8546 8D9A C290 3605 12EE 7D70 7111 2056
/otr info
OTR: traumschule at irc.indymedia.org fingerprint:
OTR: 35AACA83 4564616C B6EBEC66 56B6B2FC C8D572F1
OTR: traumschule at irc.oftc.net fingerprint:
OTR: D1CCD207 B60C1866 56A975AE ACE090E9 45E90846
OTR: traumschule at chat.freenode.net fingerprint:
OTR: 51BF8BB9 434840CC 24F264BC 76450C27 A6AADB12
More information about the tor-mirrors
mailing list