Nginx 日志重写

 ·  2025-01-02

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;
 
评论
Jan. All Rights Reserved. Theme Jasmine by Kent Liao.
蜀ICP备2023017538号-1