HTTP variables

$query_string variable (HTTP)

Alternate name for $args, the current query string. May contain private tokens or personal input; avoid recording raw queries. 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
$query_string

Working Example

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