map $remote_addr $log_ip {
"127.0.0.1" 0;
"~10...*" 0;
"~192.168..*" 0;
default 1;
}
server {
[…]
access_log /var/log/nginx/access.log main if=$log_ip;
}
16 Januar 2020
map $remote_addr $log_ip {
"127.0.0.1" 0;
"~10...*" 0;
"~192.168..*" 0;
default 1;
}
server {
[…]
access_log /var/log/nginx/access.log main if=$log_ip;
}