HTTP variables
$remote_addr variable (HTTP)
Client address as known to Nginx; trusted address rewriting can affect it.
Formal Syntax & Structure
nginx syntaxnginx
$remote_addrWorking Example
Example Snippetnginx
# Partial location example; synthetic lab onlyreturn 200 "$remote_addr\n";