Troubleshooting when working on Linux OS🔗

Excessive logging in Nginx access.log🔗

  1. In a text editor, open the Nginx configuration file:

    sudo nano /etc/nginx/nginx.conf
    
  2. Find the access_log directive, which by default may look like:

    access_log /var/log/nginx/access.log;
    

    Replace this line with:

    access_log off;
    
  3. Save the changes and exit the editor.

  4. Restart Nginx.

    sudo systemctl restart nginx.service