Proper way to rotate Nginx logs
- by depesz
I would like to achieve rotation of nginx logs that:
would work without any extra software (i.e. - best if without "logrotate")
would create rotated files with names based on date
Best approach is something like PostgreSQL has - i.e. in it's log_filename config variable I can specify strftime-style %Y-%m-%d, and it will automatically change log…