To disable access_log created by Nginx, I added 'access_log off;' after 'error_log /var/log/nginx/error.log warn;'
access_log off;
error_log /var/log/nginx/error.log warn;
But I am getting error : "access_log" directive is not allowed here in /etc/nginx/nginx.conf"
How to fix it?