HTTP variables

$arg_* variable family (HTTP)

Read a named query argument, for example $arg_category from ?category=books. Treat it as untrusted input; do not make a cache or authorization decision without validating the expected representation. The asterisk represents a name suffix, not literal configuration syntax. 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
$arg_*

Working Example

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