HTTP variables

$request variable (HTTP)

Original request-line representation, including method, target and protocol where applicable. Query strings may contain secrets; prefer selected sanitized fields in logs. 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

Working Example

Example Snippetnginx
# Partial http-context example: map a synthetic value to a presence flag, never log the raw value.map $request $lab_present {    "" 0;    default 1;}
Nginx Reference