HTTP variables
$request_body_file variable (HTTP)
Temporary body-file pathname when body data is stored on disk. Forced file mode and cleanup policy affect availability. Passing only the file path to a backend requires deliberately disabling normal body forwarding and sharing a controlled filesystem; do not expose the path. Version: Introduction not established. OSS documentation; verify build. No positional directive arguments. Example is a partial configuration fragment for a disposable synthetic lab; not a production logging policy.
Formal Syntax & Structure
nginx syntaxnginx
$request_body_fileWorking Example
Example Snippetnginx
# Partial http-context example: map a synthetic value to a presence flag, never log the raw value.map $request_body_file $lab_present { "" 0; default 1;}