HTTP directives

log_subrequest directive (HTTP)

Include subrequests in access logs for debugging internal fragments or authorization paths. Review privacy and log volume. Context: http, server, location. Documented default: off. 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_subrequest on | off;

Parameters & Attributes

NameTypeDescription
stateon | offSelect whether this behavior is enabled.

Working Example

Example Snippetnginx
log_subrequest on;
Nginx Reference