Manually rotate a log file

Solution 1:

Manually running logrotate -f /etc/logrotate.d/nginx will forcefully rotate the logs configured in that file.