Nginx统计网站的pv和uv和ip
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 # nginx 配置 log_format tongji '$remote_addr - [$time_iso8601] "$request" '' - $status "User_Cookie:$guid" '; server { listen 80; server_name xxx.com; index index.html index.htm index.php; root /alidata/www/tongji; #将cookie中key为g