HTTP directives

real_ip_recursive directive (HTTP)

Contexts: http, server, location. Default: off. Requires HTTP Real IP module. Recursive interpretation chooses the last non-trusted address for a trusted incoming peer.

Formal Syntax & Structure

nginx syntaxnginx
real_ip_recursive on | off;

Parameters & Attributes

NameTypeDescription
stateon | offWhen on, select the last untrusted address in the chain from a trusted peer; otherwise use the last supplied address.

Working Example

Example Snippetnginx
real_ip_recursive on;
Nginx Reference