文章目录
log_format xgt '$http_x_forwarded_for - [$time_iso8601] [$request_time] "$request" '
'$upstream_status $status $body_bytes_sent '
'"$http_user_agent" - "$http_referer" [$upstream_response_time] $upstream_addr '
'cookies: "$userinfo"';
set $userinfo "";
if ( $http_cookie ~* "userinfo=(.+?)(?=;|$)" ) {
#if ( $http_cookie ~* "(.*)$" ) {
set $userinfo $1;
}