cron everyday at 23:55 mv path/to/your/log `date +%Y%m%d`.log
should do the same ^^
On Wed, Nov 4, 2009 at 6:28 PM, Anders Melchiorsen
<mail@spoon.kalibalik.dk>wrote:
> Hi.
>
> Rather than rotating logs, I name my access log files like
> access-YEAR-MONTH.log.
>
> Is this possible with nginx? I was looking a variable containing the
> current date, but did not find any.
>
>
> TIA,
> Anders.
>
>
>