HTTP variables

$proxy_protocol_server_addr variable (HTTP)

Destination address supplied by the incoming PROXY protocol metadata. Requires a PROXY-enabled listener reached only by trusted intermediaries; may differ from the actual local socket address. Version: 1.17.6. 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_server_addr

Working Example

Example Snippetnginx
# Partial http-context example: isolated synthetic requests only; no real user data.log_format lab_proxy_protocol_server_addr escape=json '{"observed":"$proxy_protocol_server_addr"}';
Nginx Reference