changeset 1854:dca985318cfe

Documented default value for server route in sticky route.
author Yaroslav Zhuravlev <yar@nginx.com>
date Mon, 28 Nov 2016 21:19:55 +0300
parents 8868945bbe97
children 2ef67c4d2226
files xml/en/docs/http/ngx_http_upstream_module.xml xml/ru/docs/http/ngx_http_upstream_module.xml
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_upstream_module.xml
+++ b/xml/en/docs/http/ngx_http_upstream_module.xml
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_upstream_module"
         link="/en/docs/http/ngx_http_upstream_module.html"
         lang="en"
-        rev="55">
+        rev="56">
 
 <section id="summary">
 
@@ -1145,6 +1145,9 @@ in a cookie or URI.
 This information is compared with the “<literal>route</literal>” parameter
 of the <link id="server"/> directive to identify the server to which the
 request should be proxied.
+If the “<literal>route</literal>” parameter is not specified, the route name
+will be a hexadecimal representation of the MD5 hash of the IP address and port,
+or of the UNIX-domain socket path.
 If the designated server cannot process a request, the new server is
 selected by the configured balancing method as if there is no routing
 information in the request.
--- a/xml/ru/docs/http/ngx_http_upstream_module.xml
+++ b/xml/ru/docs/http/ngx_http_upstream_module.xml
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_upstream_module"
         link="/ru/docs/http/ngx_http_upstream_module.html"
         lang="ru"
-        rev="55">
+        rev="56">
 
 <section id="summary">
 
@@ -1151,6 +1151,9 @@ 31 декабря 2037 года 23:55:55 GMT.
 Эта информация сравнивается с параметром “<literal>route</literal>” директивы
 <link id="server"/> для идентификации сервера, на который
 следует проксировать запрос.
+Если параметр “<literal>route</literal>” не задан, то именем маршрута
+будет являться MD5-хэш IP-адреса и порта
+(или пути UNIX-сокета) в шестнадцатеричном виде.
 Если назначенный сервер не может обработать запрос, выбирается новый сервер
 согласно настроенному методу балансировки как если бы в запросе не было
 информации о маршруте.