Rotating Access Logs with $date_local

Francis Daly francis at
Tue Oct 28 17:12:32 UTC 2014

On Tue, Oct 28, 2014 at 09:48:32AM -0700, Igal @ wrote:

Hi there,

> > It is possible - you can use construct appropriate variable, e.g., 
> > by using map{} and $time_local.  (The $date_local won't work for 
> > you as you won't be able to set format without SSI.)
> Thank you for your prompt reply.  I do not have much experience with
> nginx configuration so I have a follow up question.

The thread starting at,254210 is not
entirely dissimilar to this one. You may find useful answers there.

The most useful is probably "don't do that"; but since you want to do
that, you can probably use one "if" or multiple "map"s.

Francis Daly        francis at

More information about the nginx mailing list