I am serving a couple different domains through NginX on the same server and they each log to their own file. I need to set up a script to rotate, and compress these files and add it to cron.
I know I have to do something to get NginX to open a new log file once I move the old one. Can someone give me the procedure for safely rotating nginx log files? I'm guessing I need to use logrotate, how do I configure it?
- Ubuntu 9.04 server ed.