修改nginx.conf
log_format main '$http_x_forwarded_for $remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$request_time"';
需要在assess_log 配置后面加上main,启用main配置
修改nginx.conf
log_format main '$http_x_forwarded_for $remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$request_time"';
需要在assess_log 配置后面加上main,启用main配置