HTTP variables
$proxy_protocol_port variable (HTTP)
Reports the client port supplied by the PROXY preamble; requires compatible listener metadata.
Formal Syntax & Structure
nginx syntaxnginx
$proxy_protocol_portWorking Example
Example Snippetnginx
log_format reported_port "$proxy_protocol_port";