HTTP directives

log_not_found directive (HTTP)

Control missing-file diagnostics in the error log; keep useful evidence while investigating a static-site path. Context: http, server, location. Documented default: on. Version: Introduction not established. OSS documentation; check target build. Example is a partial http configuration fragment; use a disposable lab, not a production tuning prescription.

Formal Syntax & Structure

nginx syntaxnginx
log_not_found on | off;

Parameters & Attributes

NameTypeDescription
stateon | offSelect whether this behavior is enabled.

Working Example

Example Snippetnginx
log_not_found on;
Nginx Reference