log_format main ‘$remote_addr – $remote_user [$time_local] “$request” ‘
‘$status $body_bytes_sent “$http_referer” ‘
‘”$http_user_agent” “$http_x_forwarded_for” “$request_body” ‘;

/www/server/nginx/conf/nginx.conf

nginx -t && killall -HUP nginx

然后去www/wwwlogs/xxx.com.log access_log 增加main;就可以了。

发表评论

邮箱地址不会被公开。 必填项已用*标注