nginx 配置 按日期输出 日志
listen 80; server_name _; if ($time_iso8601 ~ '(\d{4}-\d{2}-\d{2})') { set $day $1; } access_log /data/wwwlogs/sms_nginx_$day.log combined;
记录一些技术资料等等
listen 80; server_name _; if ($time_iso8601 ~ '(\d{4}-\d{2}-\d{2})') { set $day $1; } access_log /data/wwwlogs/sms_nginx_$day.log combined;