Rotate Nginx Logs Using Time Based if Statement

A simple change to your Nginx config will enable log rotation, removing the need for an external function to rotate your logs.
Rotate Nginx Logs Using Time Based if Statement

Tired of having to clear up disk space issues due to Nginx logs filling up?