Nginx - Diagnostic / Debug


This page adds information on how to be able to diagnostic or debug a problem with nginx


Send Special Header Field

location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
    add_header X-uri "$uri";
    add_header X-debug-message "A static file was served" always;

Set the log level

Nginx - Log (log_format)

error_log  {{ nginx_log_path }}/{{ fqdn }}/https-error.log fine;

Discover More
Nginx - Log (log_format)

This article is the Web/HTTP log of nginx. The log is: available via the ngx_http_log_module module part of the diagnostic tools. This...

Share this page:
Follow us:
Task Runner