How to actually turn off nginx logs entirely
If you’re using statements in your nginx config such as
access_log off;
error_log off;
this will not actually turn off the logging. it will just write the logs to /usr/share/nginx/off
.
In order to actually turn off logging, use
access_log /dev/null;
error_log /dev/null;