默认格式
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
添加$host
log_format main '$remote_addr - $remote_user [$time_local] $host "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
添加$http_cookie
#添加http_cookie
'"$http_user_agent" "$http_x_forwarded_for" $http_cookie';
#添加后端地址 和请求时间
'"$upstream_addr" $request_time $upstream_response_time';
记录authorization
'"$http_authorization"';