HTTP variables
$remote_port variable (HTTP)
Port of the client peer as represented by Nginx. Trusted real-IP processing may change the represented peer; this is not a stable user identity. Version: Introduction not established. 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
$remote_portWorking Example
Example Snippetnginx
# Partial http-context example: isolated synthetic requests only; no real user data.log_format lab_remote_port escape=json '{"observed":"$remote_port"}';