HTTP variables
$realip_remote_port variable (HTTP)
Since 1.11.0, preserves the original client port before Real IP substitution.
Formal Syntax & Structure
nginx syntaxnginx
$realip_remote_portWorking Example
Example Snippetnginx
log_format peer "$realip_remote_port";