如下配置nginx是可以的,但是openresty就不行,是方式不对吗?还是不支持呀? 有没有大佬指点一下
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
log_format user '$remote_addr $request_time $upstream_response_time'
' [$remote_user] [$time_local] [$request]'
' [$status] [$body_bytes_sent] [$http_referer]'
' [$http_x_forwarded_for] [$upstream_addr]';
access_log /var/logs/nginx/user_access.log user;
access_log /var/logs/nginx/access.log main;
#access_log /usr/local/openresty/nginx/logs/user_access.log user;
#access_log /usr/local/openresty/nginx/logs/access.log main;