Welcome! Log In Create A New Profile

Advanced

Re: Anonymize IP logging

May 04, 2012 12:30AM
2012/5/3 Alexandr Gomoliako <zzz@zzz.org.ua>:

> Or perl code, which is even easier, than lua :)
>
>    perl_set  $anon_addr  ' sub {
>        use Digest::MD5 qw(md5_hex);
>        my $r = shift;
>        md5_hex $r->remote_addr
>    } ';

Thanks for the info. Is there a way to configure this globally for all vhosts?

I have already this lines in my nginx.conf:
log_format combined_noip '127.0.0.1 - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';


So i would need the $anon_addr instead of the 127.0.0.1.

Thanks

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Anonymize IP logging

Veerle May 03, 2012 01:42AM

Re: Anonymize IP logging

Martin Loy May 03, 2012 01:58AM

Re: Anonymize IP logging

Alexandr Gomoliako May 03, 2012 06:50AM

Re: Anonymize IP logging

Veerle May 04, 2012 12:30AM

Re: Anonymize IP logging

masonicboom March 31, 2018 07:07PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready