HTTP variables

$proxy_protocol_tlv_* variable family (HTTP)

Read a PROXY v2 metadata TLV using a supported symbolic name or hexadecimal type (for instance $proxy_protocol_tlv_alpn or $proxy_protocol_tlv_0x01). Nested SSL types use ssl_ prefixes. Values are supplied by the intermediary; never treat them as independent authentication. Requires PROXY-enabled listener. The asterisk represents a name suffix, not literal configuration syntax. Version: 1.23.2. 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
$proxy_protocol_tlv_*

Working Example

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