changeset 1510:f90c2ea1729e

Documented the "proxy_bind" directive for stream.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 16 Jun 2015 13:39:33 +0300
parents 1bac783821f4
children ebcd55d68d7d
files xml/en/docs/stream/ngx_stream_proxy_module.xml xml/ru/docs/stream/ngx_stream_proxy_module.xml
diffstat 2 files changed, 40 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/stream/ngx_stream_proxy_module.xml
+++ b/xml/en/docs/stream/ngx_stream_proxy_module.xml
@@ -9,7 +9,7 @@
 <module name="Module ngx_stream_proxy_module"
         link="/en/docs/stream/ngx_stream_proxy_module.html"
         lang="en"
-        rev="5">
+        rev="6">
 
 <section id="summary">
 
@@ -49,6 +49,25 @@ server {
 
 <section id="directives" name="Directives">
 
+<directive name="proxy_bind">
+<syntax><value>address</value> | <literal>off</literal></syntax>
+<default/>
+<context>stream</context>
+<context>server</context>
+<appeared-in>1.9.2</appeared-in>
+
+<para>
+Makes outgoing connections to a proxied server originate
+from the specified local IP <value>address</value>.
+The special value <literal>off</literal> cancels the effect
+of the <literal>proxy_bind</literal> directive
+inherited from the previous configuration level, which allows the
+system to auto-assign the local IP address.
+</para>
+
+</directive>
+
+
 <directive name="proxy_connect_timeout">
 <syntax><value>time</value></syntax>
 <default>60s</default>
--- a/xml/ru/docs/stream/ngx_stream_proxy_module.xml
+++ b/xml/ru/docs/stream/ngx_stream_proxy_module.xml
@@ -9,7 +9,7 @@
 <module name="Модуль ngx_stream_proxy_module"
         link="/ru/docs/stream/ngx_stream_proxy_module.html"
         lang="ru"
-        rev="5">
+        rev="6">
 
 <section id="summary">
 
@@ -49,6 +49,25 @@ server {
 
 <section id="directives" name="Директивы">
 
+<directive name="proxy_bind">
+<syntax><value>адрес</value> | <literal>off</literal></syntax>
+<default/>
+<context>stream</context>
+<context>server</context>
+<appeared-in>1.9.2</appeared-in>
+
+<para>
+Задаёт локальный IP-<value>адрес</value>, который будет использоваться в
+исходящих соединениях с проксируемым сервером.
+Специальное значение <literal>off</literal> отменяет действие
+унаследованной с предыдущего уровня конфигурации
+директивы <literal>proxy_bind</literal>, позволяя системе
+самостоятельно выбирать локальный IP-адрес.
+</para>
+
+</directive>
+
+
 <directive name="proxy_connect_timeout">
 <syntax><value>время</value></syntax>
 <default>60s</default>