HTTP variables
$server_addr variable (HTTP)
Local server address for the accepted request. Explicitly bound addresses can avoid a socket lookup; this value is not a public URL behind NAT. 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
$server_addrWorking Example
Example Snippetnginx
# Partial http-context example: isolated synthetic requests only; no real user data.log_format lab_server_addr escape=json '{"observed":"$server_addr"}';