Ruby Forum NGINX > access log's name

Posted by walt (Guest)
on 03.09.2008 09:13
(Received via mailing list)
I want to make the access log file's name as
image.test.com_access.date,   for example,
image.test.com_access.2008-09-03,tomorrow will be
image.test.com_access.2008-09-04.what should I do ?thank you!
Posted by mike (Guest)
on 03.09.2008 09:34
(Received via mailing list)
use a logrotation tool, and send a kill -USR1 to nginx which tells it
to reopen the logfiles again

i.e.

mv image.test.com_access_log image.test.com_access_log.2008-09-04 (or
whatever today's date is/was)
kill -USR1 `cat /var/run/nginx.pid`

should work...