changeset 468:31e81dcc4ffd

set_real_ip_from: documented the special parameter "unix:".
author Ruslan Ermilov <ru@nginx.com>
date Wed, 28 Mar 2012 07:50:06 +0000
parents c505c92c8658
children 8275e169f77b
files xml/en/docs/http/ngx_http_realip_module.xml xml/ru/docs/http/ngx_http_realip_module.xml
diffstat 2 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_realip_module.xml	Wed Mar 28 07:41:43 2012 +0000
+++ b/xml/en/docs/http/ngx_http_realip_module.xml	Wed Mar 28 07:50:06 2012 +0000
@@ -38,15 +38,20 @@
 <section id="directives" name="Directives">
 
 <directive name="set_real_ip_from">
-<syntax><value>address</value> | <value>CIDR</value></syntax>
+<syntax>
+    <value>address</value> |
+    <value>CIDR</value> |
+    <literal>unix:</literal></syntax>
 <default/>
 <context>http</context>
 <context>server</context>
 <context>location</context>
 
 <para>
-Describes trusted addresses that are known to send correct
+Describes trusted IPv4 addresses that are known to send correct
 replacement addresses.
+If the special value <literal>unix:</literal> is specified,
+all UNIX-domain sockets will be trusted.
 </para>
 
 </directive>
--- a/xml/ru/docs/http/ngx_http_realip_module.xml	Wed Mar 28 07:41:43 2012 +0000
+++ b/xml/ru/docs/http/ngx_http_realip_module.xml	Wed Mar 28 07:50:06 2012 +0000
@@ -38,15 +38,20 @@
 <section id="directives" name="Директивы">
 
 <directive name="set_real_ip_from">
-<syntax><value>адрес</value> | <value>CIDR</value></syntax>
+<syntax>
+    <value>адрес</value> |
+    <value>CIDR</value> |
+    <literal>unix:</literal></syntax>
 <default/>
 <context>http</context>
 <context>server</context>
 <context>location</context>
 
 <para>
-Описывает доверенные адреса, которые передают верный адрес
+Описывает доверенные IPv4-адреса, которые передают верный адрес
 для замены.
+Если указано специальное значение <literal>unix:</literal>,
+доверенными будут считаться все UNIX-сокеты.
 </para>
 
 </directive>