Access log's name

I want to make the access log file’s name as, 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


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/

should work…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs