nginx.com uses cookies to provide functionality and performance. Privacy Policy.
NGINX will re-open its logs in response to the USR1
signal.
$ mv access.log access.log.0
$ kill -USR1 `cat master.nginx.pid`
$ sleep 1
$ gzip access.log.0 # do something with access.log.0