HTTP variables
$upstream_http_* variable family (HTTP)
Read a field from the final upstream response headers. Lowercase field names and translate hyphens to underscores. Version: Introduction not established. Use only approved synthetic fields; headers are not inherently trustworthy. No positional arguments. Example: partial http configuration for a disposable synthetic lab; not a complete deployment.
Formal Syntax & Structure
nginx syntaxnginx
$upstream_http_*Working Example
Example Snippetnginx
# Classify presence without emitting raw backend metadata.map $upstream_http_x_lab_marker $lab_seen_upstream_http_x_lab_marker { "" absent; default present;}