Skip to content

Commit 17e76e8

Browse files
committed
Fixed example in proxy_request_dynamic and friends.
1 parent ca247cf commit 17e76e8

10 files changed

+149
-30
lines changed

xml/en/docs/http/ngx_http_fastcgi_module.xml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,15 +1483,8 @@ if nginx already started sending the request body.
14831483
Enables or disables creation of a separate request instance
14841484
for each FastCGI server.
14851485
By default, a single request is used for all FastCGI servers.
1486-
If the directive is set to the value “<literal>on</literal>”,
1487-
a separate request instance is created,
1486+
If enabled, a separate request instance is created,
14881487
allowing per-server request customization.
1489-
For example, the server-specific <header>Host</header> request header field
1490-
can be set:
1491-
<example>
1492-
proxy_request_dynamic on;
1493-
proxy_set_header Host $upstream_last_server_name;
1494-
</example>
14951488
</para>
14961489

14971490
<para>

xml/en/docs/http/ngx_http_grpc_module.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,14 +499,13 @@ the connection is closed.
499499
Enables or disables creation of a separate request instance
500500
for each gRPC server.
501501
By default, a single request is used for all gRPC servers.
502-
If the directive is set to the value “<literal>on</literal>”,
503-
a separate request instance is created,
502+
If enabled, a separate request instance is created,
504503
allowing per-server request customization.
505504
For example, the server-specific <header>Host</header> request header field
506505
can be set:
507506
<example>
508-
proxy_request_dynamic on;
509-
proxy_set_header Host $upstream_last_server_name;
507+
grpc_request_dynamic on;
508+
grpc_set_header Host $upstream_last_server_name;
510509
</example>
511510
</para>
512511

xml/en/docs/http/ngx_http_proxy_module.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,8 +1907,7 @@ HTTP/1.1 is <link id="proxy_http_version">enabled</link> for proxying.
19071907
Enables or disables creation of a separate request instance
19081908
for each proxied server.
19091909
By default, a single request is used for all proxied servers.
1910-
If the directive is set to the value “<literal>on</literal>”,
1911-
a separate request instance is created,
1910+
If enabled, a separate request instance is created,
19121911
allowing per-server request customization.
19131912
For example, the server-specific <header>Host</header> request header field
19141913
can be set:

xml/en/docs/http/ngx_http_scgi_module.xml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,15 +1389,8 @@ the request body will be buffered regardless of the directive value.
13891389
Enables or disables creation of a separate request instance
13901390
for each SCGI server.
13911391
By default, a single request is used for all SCGI servers.
1392-
If the directive is set to the value “<literal>on</literal>”,
1393-
a separate request instance is created,
1392+
If enabled, a separate request instance is created,
13941393
allowing per-server request customization.
1395-
For example, the server-specific <header>Host</header> request header field
1396-
can be set:
1397-
<example>
1398-
proxy_request_dynamic on;
1399-
proxy_set_header Host $upstream_last_server_name;
1400-
</example>
14011394
</para>
14021395

14031396
<para>

xml/en/docs/http/ngx_http_uwsgi_module.xml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,15 +1431,8 @@ the request body will be buffered regardless of the directive value.
14311431
Enables or disables creation of a separate request instance
14321432
for each uwsgi server.
14331433
By default, a single request is used for all uwsgi servers.
1434-
If the directive is set to the value “<literal>on</literal>”,
1435-
a separate request instance is created,
1434+
If enabled, a separate request instance is created,
14361435
allowing per-server request customization.
1437-
For example, the server-specific <header>Host</header> request header field
1438-
can be set:
1439-
<example>
1440-
proxy_request_dynamic on;
1441-
proxy_set_header Host $upstream_last_server_name;
1442-
</example>
14431436
</para>
14441437

14451438
<para>

xml/ru/docs/http/ngx_http_fastcgi_module.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,32 @@ FastCGI-сервер.
14721472
</directive>
14731473

14741474

1475+
<directive name="fastcgi_request_dynamic">
1476+
<syntax><literal>on</literal> | <literal>off</literal></syntax>
1477+
<default>off</default>
1478+
<context>http</context>
1479+
<context>server</context>
1480+
<context>location</context>
1481+
<appeared-in>1.29.3</appeared-in>
1482+
1483+
<para>
1484+
Разрешает или запрещает создание отдельного экземпляра запроса
1485+
для каждого FastCGI-сервера.
1486+
По умолчанию для всех FastCGI-серверов используется единый запрос.
1487+
Если разрешено, то для каждого сервера создаётся отдельный экземпляр запроса,
1488+
что позволяет кастомизировать запрос для конкретного сервера.
1489+
</para>
1490+
1491+
<para>
1492+
<note>
1493+
Директива доступна как часть
1494+
<commercial_version>коммерческой подписки</commercial_version>.
1495+
</note>
1496+
</para>
1497+
1498+
</directive>
1499+
1500+
14751501
<directive name="fastcgi_send_lowat">
14761502
<syntax><value>размер</value></syntax>
14771503
<default>0</default>

xml/ru/docs/http/ngx_http_grpc_module.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,38 @@ grpc_pass grpcs://127.0.0.1:443;
488488
</directive>
489489

490490

491+
<directive name="grpc_request_dynamic">
492+
<syntax><literal>on</literal> | <literal>off</literal></syntax>
493+
<default>off</default>
494+
<context>http</context>
495+
<context>server</context>
496+
<context>location</context>
497+
<appeared-in>1.29.3</appeared-in>
498+
499+
<para>
500+
Разрешает или запрещает создание отдельного экземпляра запроса
501+
для каждого gRPC-сервера.
502+
По умолчанию для всех gRPC-серверов используется единый запрос.
503+
Если разрешено, то для каждого сервера создаётся отдельный экземпляр запроса,
504+
что позволяет кастомизировать запрос для конкретного сервера.
505+
Например каждому серверу можно назначить своё значение
506+
поля <header>Host</header> в заголовке запроса:
507+
<example>
508+
grpc_request_dynamic on;
509+
grpc_set_header Host $upstream_last_server_name;
510+
</example>
511+
</para>
512+
513+
<para>
514+
<note>
515+
Директива доступна как часть
516+
<commercial_version>коммерческой подписки</commercial_version>.
517+
</note>
518+
</para>
519+
520+
</directive>
521+
522+
491523
<directive name="grpc_send_timeout">
492524
<syntax><value>время</value></syntax>
493525
<default>60s</default>

xml/ru/docs/http/ngx_http_proxy_module.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,6 +1901,38 @@ proxy_redirect / /;
19011901
</directive>
19021902

19031903

1904+
<directive name="proxy_request_dynamic">
1905+
<syntax><literal>on</literal> | <literal>off</literal></syntax>
1906+
<default>off</default>
1907+
<context>http</context>
1908+
<context>server</context>
1909+
<context>location</context>
1910+
<appeared-in>1.29.3</appeared-in>
1911+
1912+
<para>
1913+
Разрешает или запрещает создание отдельного экземпляра запроса
1914+
для каждого проксируемого сервера.
1915+
По умолчанию для всех проксируемых серверов используется единый запрос.
1916+
Если разрешено, то для каждого сервера создаётся отдельный экземпляр запроса,
1917+
что позволяет кастомизировать запрос для конкретного сервера.
1918+
Например каждому серверу можно назначить своё значение
1919+
поля <header>Host</header> в заголовке запроса:
1920+
<example>
1921+
proxy_request_dynamic on;
1922+
proxy_set_header Host $upstream_last_server_name;
1923+
</example>
1924+
</para>
1925+
1926+
<para>
1927+
<note>
1928+
Директива доступна как часть
1929+
<commercial_version>коммерческой подписки</commercial_version>.
1930+
</note>
1931+
</para>
1932+
1933+
</directive>
1934+
1935+
19041936
<directive name="proxy_send_lowat">
19051937
<syntax><value>размер</value></syntax>
19061938
<default>0</default>

xml/ru/docs/http/ngx_http_scgi_module.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,32 @@ SCGI-сервер.
13771377
</directive>
13781378

13791379

1380+
<directive name="scgi_request_dynamic">
1381+
<syntax><literal>on</literal> | <literal>off</literal></syntax>
1382+
<default>off</default>
1383+
<context>http</context>
1384+
<context>server</context>
1385+
<context>location</context>
1386+
<appeared-in>1.29.3</appeared-in>
1387+
1388+
<para>
1389+
Разрешает или запрещает создание отдельного экземпляра запроса
1390+
для каждого SCGI-сервера.
1391+
По умолчанию для всех SCGI-серверов используется единый запрос.
1392+
Если разрешено, то для каждого сервера создаётся отдельный экземпляр запроса,
1393+
что позволяет кастомизировать запрос для конкретного сервера.
1394+
</para>
1395+
1396+
<para>
1397+
<note>
1398+
Директива доступна как часть
1399+
<commercial_version>коммерческой подписки</commercial_version>.
1400+
</note>
1401+
</para>
1402+
1403+
</directive>
1404+
1405+
13801406
<directive name="scgi_send_timeout">
13811407
<syntax><value>время</value></syntax>
13821408
<default>60s</default>

xml/ru/docs/http/ngx_http_uwsgi_module.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,32 @@ uwsgi-сервер.
14161416
</directive>
14171417

14181418

1419+
<directive name="uwsgi_request_dynamic">
1420+
<syntax><literal>on</literal> | <literal>off</literal></syntax>
1421+
<default>off</default>
1422+
<context>http</context>
1423+
<context>server</context>
1424+
<context>location</context>
1425+
<appeared-in>1.29.3</appeared-in>
1426+
1427+
<para>
1428+
Разрешает или запрещает создание отдельного экземпляра запроса
1429+
для каждого uwsgi-сервера.
1430+
По умолчанию для всех uwsgi-серверов используется единый запрос.
1431+
Если разрешено, то для каждого сервера создаётся отдельный экземпляр запроса,
1432+
что позволяет кастомизировать запрос для конкретного сервера.
1433+
</para>
1434+
1435+
<para>
1436+
<note>
1437+
Директива доступна как часть
1438+
<commercial_version>коммерческой подписки</commercial_version>.
1439+
</note>
1440+
</para>
1441+
1442+
</directive>
1443+
1444+
14191445
<directive name="uwsgi_send_timeout">
14201446
<syntax><value>время</value></syntax>
14211447
<default>60s</default>

0 commit comments

Comments
 (0)