FAQ

Page Discussion Edit History

LogRotation

[edit] Log Rotation

nginx will re-open its logs in response to the USR1 signal.

$ mv access.log access.log.0
$ kill -USR1 <code>cat master.nginx.pid</code>
$ sleep 1
$ gzip access.log.0    # do something with access.log.0

References: