server { ... if ($time_iso8601 ~ "^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})") { access_log /var/log/www/https.$year-$month.access.log main_format; } ... }
server { ... if ($time_iso8601 ~ "^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})") { access_log /var/log/www/https.$year-$month.access.log main_format; } ... }