What is the best way to rotate NGINX log files ?

Mansoor Peerbhoy mansoor at zimbra.com
Wed Dec 5 21:41:30 MSK 2007


Hello Igor, 

I have a question. What's the best way to rotate the NGINX log file ? We run NGINX as a Mail Proxy, and the log file grows quite large because we don't restart it very frequently.

Are there any alternatives to simply killing the NGINX process, zipping up the error log, and then restarting NGINX ?

Regards,
Mansoor






More information about the nginx mailing list