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!
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…