access_log on;
log_format main
'"<$http_Cdn_Src_IP>" '
'"{$http_x_real_ip}" '
'"[$http_x_forwarded_for]" '
'"$remote_addr" '
'"$http_user_agent" - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer"';
access_log /www/wwwlogs/logs/access.log main;
error_log /www/wwwlogs/logs/com_error.log main;
Nginx 日志重写
· 2025-01-02
评论