Disable logging in Nginx

vim /etc/nginx/nginx.conf

Change directives:

access_log off;
error_log off;

…and restart nginx. If you have “service” package this is done with

service nginx restart

Source

Leave a Reply

Your email address will not be published. Required fields are marked *

Markdown is allowed in comments.