# HG changeset patch # User Yaroslav Zhuravlev # Date 1464110555 -10800 # Node ID f855acbd0a944d9d1b25c7262fbbb524d41f7a27 # Parent 792478434bb19fbca442b4376b455d5e4dc80034 Documented the $realip_remote_port variable. diff -r 792478434bb1 -r f855acbd0a94 xml/en/docs/http/ngx_http_realip_module.xml --- a/xml/en/docs/http/ngx_http_realip_module.xml Tue May 24 20:19:12 2016 +0300 +++ b/xml/en/docs/http/ngx_http_realip_module.xml Tue May 24 20:22:35 2016 +0300 @@ -10,13 +10,14 @@ + rev="5">
The ngx_http_realip_module module is used -to change the client address to the one sent in the specified header field. +to change the client address and optional port +to the one sent in the specified header fields. @@ -85,6 +86,13 @@ +The X-Real-IP and X-Forwarded-For +parameters may contain an optional port (1.11.0). +The address and port should be specified according to +RFC 3986. + + + The proxy_protocol parameter (1.5.12) changes the client address to the one from the PROXY protocol header. The PROXY protocol must be previously enabled by setting the @@ -129,6 +137,11 @@ keeps the original client address (1.9.7) +$realip_remote_port + +keeps the original client port (1.11.0) + + diff -r 792478434bb1 -r f855acbd0a94 xml/ru/docs/http/ngx_http_realip_module.xml --- a/xml/ru/docs/http/ngx_http_realip_module.xml Tue May 24 20:19:12 2016 +0300 +++ b/xml/ru/docs/http/ngx_http_realip_module.xml Tue May 24 20:22:35 2016 +0300 @@ -10,13 +10,14 @@ + rev="5">
-Модуль ngx_http_realip_module позволяет менять адрес клиента -на переданный в указанном поле заголовка. +Модуль ngx_http_realip_module позволяет +менять адрес и необязательный порт клиента +на переданный в указанных полях заголовка. @@ -85,6 +86,13 @@ +Параметры X-Real-IP и X-Forwarded-For +могут содержать необязательный порт (1.11.0). +Адрес и порт должны быть указаны согласно +RFC 3986. + + + Параметр proxy_protocol (1.5.12) меняет адрес клиента на указанный в заголовке PROXY-протокола. Протокол PROXY должен быть предварительно включён при помощи установки @@ -129,6 +137,11 @@ хранит исходный адрес клиента (1.9.7) +$realip_remote_port + +хранит исходный порт клиента (1.11.0) + +