changeset 1809:2245f2827e2f

Added examples of Linux and FreeBSD paths to "state" directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Fri, 07 Oct 2016 20:31:57 +0300
parents 4b6d7686e00f
children bc6341aaa832
files xml/en/docs/http/ngx_http_upstream_module.xml xml/en/docs/stream/ngx_stream_upstream_module.xml xml/ru/docs/http/ngx_http_upstream_module.xml xml/ru/docs/stream/ngx_stream_upstream_module.xml
diffstat 4 files changed, 48 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_upstream_module.xml	Sat Sep 27 20:00:31 2014 +0400
+++ b/xml/en/docs/http/ngx_http_upstream_module.xml	Fri Oct 07 20:31:57 2016 +0300
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_upstream_module"
         link="/en/docs/http/ngx_http_upstream_module.html"
         lang="en"
-        rev="51">
+        rev="52">
 
 <section id="summary">
 
@@ -378,6 +378,17 @@
 <para>
 Specifies a <value>file</value> that keeps the state
 of the dynamically configurable group.
+</para>
+
+<para>
+Examples:
+<example>
+state /var/lib/nginx/state/servers.conf; # path for Linux
+state /var/db/nginx/state/servers.conf;  # path for FreeBSD
+</example>
+</para>
+
+<para>
 The state is currently limited to the list of servers with their parameters.
 The file is read when parsing the configuration and is updated each time
 the upstream configuration is
--- a/xml/en/docs/stream/ngx_stream_upstream_module.xml	Sat Sep 27 20:00:31 2014 +0400
+++ b/xml/en/docs/stream/ngx_stream_upstream_module.xml	Fri Oct 07 20:31:57 2016 +0300
@@ -9,7 +9,7 @@
 <module name="Module ngx_stream_upstream_module"
         link="/en/docs/stream/ngx_stream_upstream_module.html"
         lang="en"
-        rev="19">
+        rev="20">
 
 <section id="summary">
 
@@ -353,6 +353,17 @@
 <para>
 Specifies a <value>file</value> that keeps the state
 of the dynamically configurable group.
+</para>
+
+<para>
+Examples:
+<example>
+state /var/lib/nginx/state/servers.conf; # path for Linux
+state /var/db/nginx/state/servers.conf;  # path for FreeBSD
+</example>
+</para>
+
+<para>
 The state is currently limited to the list of servers with their parameters.
 The file is read when parsing the configuration and is updated each time
 the upstream configuration is
--- a/xml/ru/docs/http/ngx_http_upstream_module.xml	Sat Sep 27 20:00:31 2014 +0400
+++ b/xml/ru/docs/http/ngx_http_upstream_module.xml	Fri Oct 07 20:31:57 2016 +0300
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_upstream_module"
         link="/ru/docs/http/ngx_http_upstream_module.html"
         lang="ru"
-        rev="51">
+        rev="52">
 
 <section id="summary">
 
@@ -381,6 +381,17 @@
 <para>
 Задаёт <value>файл</value>, в котором хранится состояние
 динамически настраиваемой группы.
+</para>
+
+<para>
+Примеры:
+<example>
+state /var/lib/nginx/state/servers.conf; # путь для Linux
+state /var/db/nginx/state/servers.conf;  # путь для FreeBSD
+</example>
+</para>
+
+<para>
 В данный момент состояние ограничено списком серверов с их параметрами.
 Файл читается при парсинге конфигурации и обновляется каждый раз при
 <link doc="ngx_http_upstream_conf_module.xml" id="upstream_conf">изменении</link>
--- a/xml/ru/docs/stream/ngx_stream_upstream_module.xml	Sat Sep 27 20:00:31 2014 +0400
+++ b/xml/ru/docs/stream/ngx_stream_upstream_module.xml	Fri Oct 07 20:31:57 2016 +0300
@@ -9,7 +9,7 @@
 <module name="Модуль ngx_stream_upstream_module"
         link="/ru/docs/stream/ngx_stream_upstream_module.html"
         lang="ru"
-        rev="19">
+        rev="20">
 
 <section id="summary">
 
@@ -354,6 +354,17 @@
 <para>
 Задаёт <value>файл</value>, в котором хранится состояние
 динамически настраиваемой группы.
+</para>
+
+<para>
+Примеры:
+<example>
+state /var/lib/nginx/state/servers.conf; # путь для Linux
+state /var/db/nginx/state/servers.conf;  # путь для FreeBSD
+</example>
+</para>
+
+<para>
 В данный момент состояние ограничено списком серверов с их параметрами.
 Файл читается при парсинге конфигурации и обновляется каждый раз при
 <link doc="ngx_http_upstream_conf_module.xml" id="upstream_conf">изменении</link>