some nginx

1. log config

if ($time_iso8601 ~ "^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})") {
    set $year $1;
    set $month $2;
    set $day $3;
    set $hour $4;
    set $minutes $5;
    set $seconds $6;
}

access_log /var/log/nginx/$year-$month-$day-access.log;

 

 

2. 

posted @ 2022-05-06 15:26  h.yl  阅读(16)  评论(0编辑  收藏  举报