Where can I find the error logs of NGINX, using FastCGI and Django?

Better Stack Team
Updated on November 16, 2022

By default Nginx stores its error logs in the /var/log/nginx/error.log file and access logs in the /var/log/nginx/access.log.

To change the location of the log files, configure the following directives in the Nginx config:

http {
            ...
                      error_log  /var/log/nginx/error.log  crit;
                      ...
            server {
                    ...
                    access_log /var/log/nginx/access.log custom;
                    ...
            }
}
Copied!
Got an article suggestion? Let us know
Explore more
Licensed under CC-BY-NC-SA

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

We are hiring.

Software is our way of making the world a tiny bit better. We build tools for the makers of tomorrow.

Explore all positions →

Reliability is the
ultimate feature

Delightful observability tools that turn your logs & monitoring into a secret weapon for shipping better software faster.

Explore Better Stack