How to actually turn off nginx logs entirely
If you’re using statements in your nginx config such as
nginx_conf_example.conf
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
nginx_conf_devnull.conf
access_log /dev/null;
error_log /dev/null;
Check out similar posts by category:
Nginx
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow