nginx : access.log and error.log file empty

I had the same issue after reinstalling nginx to newer version. Seems like log files ownership changed and new nginx couldn’t save anything there.

Removing log files and reloading nginx worked for me:

$ sudo rm -f /var/log/nginx/*
$ sudo nginx -s reload

Leave a Comment