# HG changeset patch # User Yaroslav Zhuravlev # Date 1445887086 -10800 # Node ID c2a0a18e65ba7e9c2e0f018d3877754e18bd318a # Parent c4520ec8ce64d7f7bb09c02a74704af0b9f95bd3 Added keepalive info for ntlm. diff -r c4520ec8ce64 -r c2a0a18e65ba xml/en/docs/http/ngx_http_proxy_module.xml --- a/xml/en/docs/http/ngx_http_proxy_module.xml Mon Oct 26 15:12:37 2015 +0000 +++ b/xml/en/docs/http/ngx_http_proxy_module.xml Mon Oct 26 22:18:06 2015 +0300 @@ -10,7 +10,7 @@ + rev="42">
@@ -897,7 +897,8 @@ By default, version 1.0 is used. Version 1.1 is recommended for use with -connections. +connections and +NTLM authentication. diff -r c4520ec8ce64 -r c2a0a18e65ba xml/en/docs/http/ngx_http_upstream_module.xml --- a/xml/en/docs/http/ngx_http_upstream_module.xml Mon Oct 26 15:12:37 2015 +0000 +++ b/xml/en/docs/http/ngx_http_upstream_module.xml Mon Oct 26 22:18:06 2015 +0300 @@ -10,7 +10,7 @@ + rev="44">
@@ -536,6 +536,40 @@ +In order for NTLM authentication to work, +it is necessary to enable keepalive connections to upstream servers. +The +directive should be set to “1.1” +and the
Connection
header field should be cleared: + +upstream http_backend { + server 127.0.0.1:8080; + + ntlm; +} + +server { + ... + + location /http/ { + proxy_pass http://http_backend; + proxy_http_version 1.1; + proxy_set_header Connection ""; + ... + } +} + +
+ + + +When using load balancer methods other than the default +round-robin method, it is necessary to activate them before +the ntlm directive. + + + + This directive is available as part of our commercial subscription. diff -r c4520ec8ce64 -r c2a0a18e65ba xml/ru/docs/http/ngx_http_proxy_module.xml --- a/xml/ru/docs/http/ngx_http_proxy_module.xml Mon Oct 26 15:12:37 2015 +0000 +++ b/xml/ru/docs/http/ngx_http_proxy_module.xml Mon Oct 26 22:18:06 2015 +0300 @@ -10,7 +10,7 @@ + rev="42">
@@ -896,7 +896,9 @@ По умолчанию используется версия 1.0. Для работы постоянных -соединений рекомендуется версия 1.1. +соединений и +проверки подлинности +NTLM рекомендуется версия 1.1. diff -r c4520ec8ce64 -r c2a0a18e65ba xml/ru/docs/http/ngx_http_upstream_module.xml --- a/xml/ru/docs/http/ngx_http_upstream_module.xml Mon Oct 26 15:12:37 2015 +0000 +++ b/xml/ru/docs/http/ngx_http_upstream_module.xml Mon Oct 26 22:18:06 2015 +0300 @@ -10,7 +10,7 @@ + rev="44">
@@ -531,7 +531,7 @@ Позволяет проксировать запросы с проверкой подлинности NTLM. -Соединение с сервером группы привязывается к клиентскому соединению, +Соединение с сервером группы привязывается к клиентскому соединению как только клиент отправляет запрос, в заголовке которого есть поле
Authorization
со значением, начинающимся с “Negotiate” или “NTLM”. @@ -541,6 +541,40 @@ +Для работы проверки подлинности NTLM +необходимо разрешить постоянные соединения с серверами группы. +Директиву +следует установить в “1.1”, +а поле заголовка
Connection
 — очистить: + +upstream http_backend { + server 127.0.0.1:8080; + + ntlm; +} + +server { + ... + + location /http/ { + proxy_pass http://http_backend; + proxy_http_version 1.1; + proxy_set_header Connection ""; + ... + } +} + +
+ + + +При использовании методов балансировки нагрузки, отличных +от стандартного round-robin, следует активировать их до +директивы ntlm. + + + + Эта директива доступна как часть коммерческой подписки.