Mercurial > hg > nginx-site
annotate xml/ru/docs/http/ngx_http_scgi_module.xml @ 2016:e6de97d14f81
Documented the mirror module.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Fri, 04 Aug 2017 18:24:38 +0300 |
parents | 4f3dd2f548cf |
children | fc3ba2e76974 |
rev | line source |
---|---|
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
2 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
3 <!-- |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
4 Copyright (C) Igor Sysoev |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
5 Copyright (C) Nginx, Inc. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
6 --> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
7 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
9 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
10 <module name="Модуль ngx_http_scgi_module" |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
11 link="/ru/docs/http/ngx_http_scgi_module.html" |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
12 lang="ru" |
1991
4f3dd2f548cf
Documented variables in fastcgi_pass, scgi_pass, and uwsgi_pass.
Ruslan Ermilov <ru@nginx.com>
parents:
1973
diff
changeset
|
13 rev="36"> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
14 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
15 <section id="summary"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
16 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
17 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
18 Модуль <literal>ngx_http_scgi_module</literal> позволяет передавать |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
19 запросы SCGI-серверу. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
20 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
21 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
22 </section> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
23 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
24 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
25 <section id="example" name="Пример конфигурации"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
26 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
27 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
28 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
29 location / { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
30 include scgi_params; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
31 scgi_pass localhost:9000; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
32 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
33 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
34 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
35 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
36 </section> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
37 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
38 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
39 <section id="directives" name="Директивы"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
40 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
41 <directive name="scgi_bind"> |
1885
6839c258c473
Added <literal> tag to proxy bind transparent.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1838
diff
changeset
|
42 <syntax> |
6839c258c473
Added <literal> tag to proxy bind transparent.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1838
diff
changeset
|
43 <value>адрес</value> |
6839c258c473
Added <literal> tag to proxy bind transparent.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1838
diff
changeset
|
44 [<literal>transparent</literal>] | |
6839c258c473
Added <literal> tag to proxy bind transparent.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1838
diff
changeset
|
45 <literal>off</literal></syntax> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
46 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
47 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
48 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
49 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
50 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
51 <para> |
1748
be371be7a5c8
Documented optional port for proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1724
diff
changeset
|
52 Задаёт локальный IP-адрес с необязательным портом (1.11.2), |
be371be7a5c8
Documented optional port for proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1724
diff
changeset
|
53 который будет использоваться в исходящих соединениях с SCGI-сервером. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
54 В значении параметра допустимо использование переменных (1.3.12). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
55 Специальное значение <literal>off</literal> (1.3.12) отменяет действие |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
56 унаследованной с предыдущего уровня конфигурации |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
57 директивы <literal>scgi_bind</literal>, позволяя системе |
1748
be371be7a5c8
Documented optional port for proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1724
diff
changeset
|
58 самостоятельно выбирать локальный IP-адрес и порт. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
59 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
60 |
1696
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
61 <para id="scgi_bind_transparent"> |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
62 Параметр <literal>transparent</literal> (1.11.0) позволяет |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
63 задать нелокальный IP-aдрес, который будет использоваться в |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
64 исходящих соединениях с SCGI-сервером, |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
65 например, реальный IP-адрес клиента: |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
66 <example> |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
67 scgi_bind $remote_addr transparent; |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
68 </example> |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
69 Для работы параметра |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
70 необходимо запустить рабочие процессы nginx с привилегиями |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
71 <link doc="../ngx_core_module.xml" id="user">суперпользователя</link>, |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
72 а также настроить таблицу маршрутизации ядра |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
73 для перехвата сетевого трафика с SCGI-сервера. |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
74 </para> |
d855e7cc3b2f
Added the "transparent" parameter of proxy_bind and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1672
diff
changeset
|
75 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
76 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
77 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
78 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
79 <directive name="scgi_buffer_size"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
80 <syntax><value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
81 <default>4k|8k</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
82 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
83 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
84 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
85 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
86 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
87 Задаёт <value>размер</value> буфера, в который будет читаться |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
88 первая часть ответа, получаемого от SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
89 В этой части ответа находится, как правило, небольшой заголовок ответа. |
1550
305f2c338181
Fixed description of default value of proxy_buffer_size and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1542
diff
changeset
|
90 По умолчанию размер одного буфера равен размеру страницы памяти. |
305f2c338181
Fixed description of default value of proxy_buffer_size and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1542
diff
changeset
|
91 В зависимости от платформы это или 4K, или 8K, |
305f2c338181
Fixed description of default value of proxy_buffer_size and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1542
diff
changeset
|
92 однако его можно сделать меньше. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
93 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
94 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
95 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
96 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
97 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
98 <directive name="scgi_buffering"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
99 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
100 <default>on</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
101 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
102 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
103 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
104 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
105 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
106 Разрешает или запрещает использовать буферизацию ответов SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
107 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
108 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
109 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
110 Если буферизация включена, то nginx принимает ответ SCGI-сервера |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
111 как можно быстрее, сохраняя его в буферы, заданные директивами |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
112 <link id="scgi_buffer_size"/> и <link id="scgi_buffers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
113 Если ответ не вмещается целиком в память, то его часть может быть записана |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
114 на диск во <link id="scgi_temp_path">временный файл</link>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
115 Запись во временные файлы контролируется директивами |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
116 <link id="scgi_max_temp_file_size"/> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
117 <link id="scgi_temp_file_write_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
118 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
119 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
120 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
121 Если буферизация выключена, то ответ синхронно передаётся клиенту сразу же |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
122 по мере его поступления. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
123 nginx не пытается считать весь ответ SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
124 Максимальный размер данных, который nginx может принять от сервера |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
125 за один раз, задаётся директивой <link id="scgi_buffer_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
126 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
127 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
128 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
129 Буферизация может быть также включена или выключена путём передачи |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
130 значения “<literal>yes</literal>” или “<literal>no</literal>” в поле |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
131 <header>X-Accel-Buffering</header> заголовка ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
132 Эту возможность можно запретить с помощью директивы |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
133 <link id="scgi_ignore_headers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
134 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
135 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
136 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
137 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
138 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
139 <directive name="scgi_buffers"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
140 <syntax><value>число</value> <value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
141 <default>8 4k|8k</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
142 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
143 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
144 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
145 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
146 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
147 Задаёт <value>число</value> и <value>размер</value> буферов |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
148 для одного соединения, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
149 в которые будет читаться ответ, получаемый от SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
150 По умолчанию размер одного буфера равен размеру страницы. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
151 В зависимости от платформы это или 4K, или 8K. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
152 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
153 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
154 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
155 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
156 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
157 <directive name="scgi_busy_buffers_size"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
158 <syntax><value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
159 <default>8k|16k</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
160 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
161 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
162 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
163 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
164 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
165 При включённой <link id="scgi_buffering">буферизации</link> ответов |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
166 SCGI-сервера, ограничивает суммарный <value>размер</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
167 буферов, которые могут быть заняты для отправки ответа клиенту, пока |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
168 ответ ещё не прочитан целиком. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
169 Оставшиеся буферы тем временем могут использоваться для чтения ответа |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
170 и, при необходимости, буферизации части ответа во временный файл. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
171 По умолчанию <value>размер</value> ограничен двумя буферами, заданными |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
172 директивами <link id="scgi_buffer_size"/> и <link id="scgi_buffers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
173 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
174 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
175 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
176 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
177 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
178 <directive name="scgi_cache"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
179 <syntax><value>зона</value> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
180 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
181 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
182 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
183 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
184 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
185 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
186 Задаёт зону разделяемой памяти, используемой для кэширования. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
187 Одна и та же зона может использоваться в нескольких местах. |
1382
94cac978bda3
Documented variables support in proxy_cache and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1379
diff
changeset
|
188 В значении параметра можно использовать переменные (1.7.9). |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
189 Параметр <literal>off</literal> запрещает кэширование, унаследованное |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
190 с предыдущего уровня конфигурации. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
191 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
192 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
193 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
194 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
195 |
1909
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
196 <directive name="scgi_cache_background_update"> |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
197 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
198 <default>off</default> |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
199 <context>http</context> |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
200 <context>server</context> |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
201 <context>location</context> |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
202 <appeared-in>1.11.10</appeared-in> |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
203 |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
204 <para> |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
205 Позволяет запустить фоновый подзапрос |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
206 для обновления просроченного элемента кэша, |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
207 в то время как клиенту возвращается устаревший закэшированный ответ. |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
208 Использование устаревшего закэшированного ответа в момент его обновления |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
209 должно быть |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
210 <link id="scgi_cache_use_stale_updating">разрешено</link>. |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
211 </para> |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
212 |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
213 </directive> |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
214 |
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
215 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
216 <directive name="scgi_cache_bypass"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
217 <syntax><value>строка</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
218 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
219 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
220 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
221 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
222 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
223 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
224 Задаёт условия, при которых ответ не будет браться из кэша. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
225 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
226 то ответ не берётся из кэша: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
227 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
228 scgi_cache_bypass $cookie_nocache $arg_nocache$arg_comment; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
229 scgi_cache_bypass $http_pragma $http_authorization; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
230 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
231 Можно использовать совместно с директивой <link id="scgi_no_cache"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
232 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
233 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
234 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
235 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
236 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
237 <directive name="scgi_cache_key"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
238 <syntax><value>строка</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
239 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
240 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
241 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
242 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
243 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
244 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
245 Задаёт ключ для кэширования, например, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
246 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
247 scgi_cache_key localhost:9000$request_uri; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
248 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
249 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
250 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
251 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
252 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
253 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
254 <directive name="scgi_cache_lock"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
255 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
256 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
257 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
258 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
259 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
260 <appeared-in>1.1.12</appeared-in> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
261 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
262 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
263 Если включено, одновременно только одному запросу будет позволено |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
264 заполнить новый элемент кэша, идентифицируемый согласно директиве |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
265 <link id="scgi_cache_key"/>, передав запрос на SCGI-сервер. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
266 Остальные запросы этого же элемента будут либо ожидать |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
267 появления ответа в кэше, либо освобождения блокировки |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
268 этого элемента, в течение времени, заданного директивой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
269 <link id="scgi_cache_lock_timeout"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
270 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
271 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
272 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
273 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
274 |
1379
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
275 <directive name="scgi_cache_lock_age"> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
276 <syntax><value>время</value></syntax> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
277 <default>5s</default> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
278 <context>http</context> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
279 <context>server</context> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
280 <context>location</context> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
281 <appeared-in>1.7.8</appeared-in> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
282 |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
283 <para> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
284 Если последний запрос, переданный на SCGI-сервер |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
285 для заполнения нового элемента кэша, |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
286 не завершился за указанное <value>время</value>, |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
287 на SCGI-сервер может быть передан ещё один запрос. |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
288 </para> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
289 |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
290 </directive> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
291 |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
292 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
293 <directive name="scgi_cache_lock_timeout"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
294 <syntax><value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
295 <default>5s</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
296 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
297 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
298 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
299 <appeared-in>1.1.12</appeared-in> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
300 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
301 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
302 Задаёт таймаут для <link id="scgi_cache_lock"/>. |
1379
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
303 По истечении указанного <value>времени</value> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
304 запрос будет передан на SCGI-сервер, |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
305 однако ответ не будет закэширован. |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
306 <note> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
307 До версии 1.7.8 такой ответ мог быть закэширован. |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
308 </note> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
309 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
310 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
311 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
312 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
313 |
1838
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
314 <directive name="scgi_cache_max_range_offset"> |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
315 <syntax><value>число</value></syntax> |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
316 <default/> |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
317 <context>http</context> |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
318 <context>server</context> |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
319 <context>location</context> |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
320 <appeared-in>1.11.6</appeared-in> |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
321 |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
322 <para> |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
323 Задаёт смещение в байтах для запросов с указанием диапазона запрашиваемых байт |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
324 (byte-range requests). |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
325 Если диапазон находится за указанным смещением, |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
326 range-запрос будет передан на SCGI-сервер |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
327 и ответ не будет закэширован. |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
328 </para> |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
329 |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
330 </directive> |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
331 |
0d6ac4838921
Documented proxy_cache_max_range_offset and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1810
diff
changeset
|
332 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
333 <directive name="scgi_cache_methods"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
334 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
335 <literal>GET</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
336 <literal>HEAD</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
337 <literal>POST</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
338 ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
339 <default>GET HEAD</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
340 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
341 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
342 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
343 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
344 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
345 Если метод запроса клиента указан в этой директиве, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
346 то ответ будет закэширован. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
347 Методы “<literal>GET</literal>” и “<literal>HEAD</literal>” всегда добавляются |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
348 в список, но тем не менее рекомендуется перечислять их явно. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
349 См. также директиву <link id="scgi_no_cache"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
350 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
351 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
352 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
353 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
354 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
355 <directive name="scgi_cache_min_uses"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
356 <syntax><value>число</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
357 <default>1</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
358 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
359 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
360 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
361 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
362 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
363 Задаёт <value>число</value> запросов, после которого ответ будет закэширован. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
364 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
365 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
366 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
367 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
368 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
369 <directive name="scgi_cache_path"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
370 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
371 <value>путь</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
372 [<literal>levels</literal>=<value>уровни</value>] |
1384
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
373 [<literal>use_temp_path</literal>=<literal>on</literal>|<literal>off</literal>] |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
374 <literal>keys_zone</literal>=<value>имя</value>:<value>размер</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
375 [<literal>inactive</literal>=<value>время</value>] |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
376 [<literal>max_size</literal>=<value>размер</value>] |
1810
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
377 [<literal>manager_files</literal>=<value>число</value>] |
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
378 [<literal>manager_sleep</literal>=<value>время</value>] |
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
379 [<literal>manager_threshold</literal>=<value>время</value>] |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
380 [<literal>loader_files</literal>=<value>число</value>] |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
381 [<literal>loader_sleep</literal>=<value>время</value>] |
1582
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
382 [<literal>loader_threshold</literal>=<value>время</value>] |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
383 [<literal>purger</literal>=<literal>on</literal>|<literal>off</literal>] |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
384 [<literal>purger_files</literal>=<value>число</value>] |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
385 [<literal>purger_sleep</literal>=<value>время</value>] |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
386 [<literal>purger_threshold</literal>=<value>время</value>]</syntax> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
387 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
388 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
389 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
390 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
391 Задаёт путь и другие параметры кэша. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
392 Данные кэша хранятся в файлах. |
1190
dd4cfc6ce770
Corrected description of *_cache_path file names.
Ruslan Ermilov <ru@nginx.com>
parents:
1189
diff
changeset
|
393 Именем файла в кэше является результат функции MD5 |
dd4cfc6ce770
Corrected description of *_cache_path file names.
Ruslan Ermilov <ru@nginx.com>
parents:
1189
diff
changeset
|
394 от <link id="scgi_cache_key">ключа кэширования</link>. |
1796
1d576e8d6ead
Clarified the "levels" parameter of proxy_cache_path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1748
diff
changeset
|
395 Параметр <literal>levels</literal> задаёт уровни иерархии кэша: |
1d576e8d6ead
Clarified the "levels" parameter of proxy_cache_path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1748
diff
changeset
|
396 можно задать от 1 до 3 уровней, на каждом уровне допускаются значения 1 или 2. |
1d576e8d6ead
Clarified the "levels" parameter of proxy_cache_path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1748
diff
changeset
|
397 Например, при использовании |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
398 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
399 scgi_cache_path /data/nginx/cache levels=1:2 keys_zone=one:10m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
400 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
401 имена файлов в кэше будут такого вида: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
402 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
403 /data/nginx/cache/<emphasis>c</emphasis>/<emphasis>29</emphasis>/b7f54b2df7773722d382f4809d650<emphasis>29c</emphasis> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
404 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
405 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
406 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
407 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
408 Кэшируемый ответ сначала записывается во временный файл, а потом этот файл |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
409 переименовывается. |
1724
ce3e89d13fa0
Removed unneeded comma in "Since ..." Russian constructs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1696
diff
changeset
|
410 Начиная с версии 0.8.9 временные файлы и кэш |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
411 могут располагаться на разных файловых системах. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
412 Однако нужно учитывать, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
413 что в этом случае вместо дешёвой операции переименовывания в пределах |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
414 одной файловой системы файл копируется с одной файловой системы на другую. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
415 Поэтому лучше, если кэш будет находиться на той же файловой |
1384
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
416 системе, что и каталог с временными файлами. |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
417 Какой из каталогов будет использоваться для временных файлов |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
418 определяется параметром <literal>use_temp_path</literal> (1.7.10). |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
419 Если параметр не задан или установлен в значение “<literal>on</literal>”, |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
420 то будет использоваться каталог, задаваемый директивой |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
421 <link id="scgi_temp_path"/> для данного location. |
1384
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
422 Если параметр установлен в значение “<literal>off</literal>”, |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
423 то временные файлы будут располагаться непосредственно в каталоге кэша. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
424 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
425 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
426 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
427 Кроме того, все активные ключи и информация о данных хранятся в зоне |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
428 разделяемой памяти, <value>имя</value> и <value>размер</value> которой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
429 задаются параметром <literal>keys_zone</literal>. |
1189
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
430 Зоны размером в 1 мегабайт достаточно для хранения около 8 тысяч ключей. |
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
431 </para> |
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
432 |
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
433 <para> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
434 Если к данным кэша не обращаются в течение времени, заданного параметром |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
435 <literal>inactive</literal>, то данные удаляются, независимо от их свежести. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
436 По умолчанию <literal>inactive</literal> равен 10 минутам. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
437 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
438 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
439 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
440 Специальный процесс “cache manager” следит за максимальным размером кэша, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
441 заданным параметром <literal>max_size</literal>, и при превышении |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
442 его размеров удаляет наименее востребованные данные. |
1810
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
443 Удаление данных происходит итерациями, настраиваемыми параметрами (1.11.5) |
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
444 <literal>manager_files</literal>, |
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
445 <literal>manager_threshold</literal> и |
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
446 <literal>manager_sleep</literal>. |
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
447 За одну итерацию загружается не более <literal>manager_files</literal> |
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
448 элементов (по умолчанию 100). |
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
449 Время работы одной итерации ограничено параметром |
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
450 <literal>manager_threshold</literal> (по умолчанию 200 миллисекунд). |
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
451 Между итерациями делается пауза на время, заданное параметром |
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
452 <literal>manager_sleep</literal> (по умолчанию 50 миллисекунд). |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
453 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
454 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
455 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
456 Через минуту после старта активируется специальный процесс “cache loader”, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
457 который загружает в зону кэша информацию о ранее закэшированных данных, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
458 хранящихся на файловой системе. |
1810
bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1804
diff
changeset
|
459 Загрузка также происходит итерациями. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
460 За одну итерацию загружается не более <literal>loader_files</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
461 элементов (по умолчанию 100). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
462 Кроме того, время работы одной итерации ограничено параметром |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
463 <literal>loader_threshold</literal> (по умолчанию 200 миллисекунд). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
464 Между итерациями делается пауза на время, заданное параметром |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
465 <literal>loader_sleep</literal> (по умолчанию 50 миллисекунд). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
466 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
467 |
1582
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
468 <para> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
469 Кроме того, |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
470 следующие параметры доступны как часть |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
471 <commercial_version>коммерческой подписки</commercial_version>: |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
472 </para> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
473 |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
474 <para> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
475 <list type="tag"> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
476 |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
477 <tag-name id="purger"> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
478 <literal>purger</literal>=<literal>on</literal>|<literal>off</literal> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
479 </tag-name> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
480 <tag-desc> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
481 Указывает, будут ли записи в кэше, соответствующие |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
482 <link id="scgi_cache_purge">маске</link>, |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
483 удалены с диска при помощи процесса “cache purger” (1.7.12). |
1659
680cbf783efe
Fixed some misuses of "value".
Ruslan Ermilov <ru@nginx.com>
parents:
1622
diff
changeset
|
484 Установка параметра в значение <literal>on</literal> |
680cbf783efe
Fixed some misuses of "value".
Ruslan Ermilov <ru@nginx.com>
parents:
1622
diff
changeset
|
485 (по умолчанию <literal>off</literal>) |
1582
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
486 активирует процесс “cache purger”, который |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
487 проходит по всем записям в кэше |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
488 и удаляет записи, соответствующие этой маске. |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
489 </tag-desc> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
490 |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
491 <tag-name id="purger_files"> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
492 <literal>purger_files</literal>=<value>число</value> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
493 </tag-name> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
494 <tag-desc> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
495 Задаёт число элементов, которые будут сканироваться за одну итерацию (1.7.12). |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
496 По умолчанию <literal>purger_files</literal> равен 10. |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
497 </tag-desc> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
498 |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
499 <tag-name id="purger_threshold"> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
500 <literal>purger_threshold</literal>=<value>время</value> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
501 </tag-name> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
502 <tag-desc> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
503 Задаёт продолжительность одной итерации (1.7.12). |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
504 По умолчанию <literal>purger_threshold</literal> равен 50 миллисекундам. |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
505 </tag-desc> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
506 |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
507 <tag-name id="purger_sleep"> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
508 <literal>purger_sleep</literal>=<value>время</value> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
509 </tag-name> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
510 <tag-desc> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
511 Задаёт паузу между итерациями (1.7.12). |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
512 По умолчанию <literal>purger_sleep</literal> равен 50 миллисекундам. |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
513 </tag-desc> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
514 |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
515 </list> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
516 </para> |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
517 |
1973
3460bd328287
Documented cache version change in proxy_cache_path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1956
diff
changeset
|
518 <para> |
3460bd328287
Documented cache version change in proxy_cache_path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1956
diff
changeset
|
519 <note> |
3460bd328287
Documented cache version change in proxy_cache_path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1956
diff
changeset
|
520 В версиях 1.7.3, 1.7.7 и 1.11.10 формат заголовка кэша был изменён. |
3460bd328287
Documented cache version change in proxy_cache_path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1956
diff
changeset
|
521 При обновлении на более новую версию nginx |
3460bd328287
Documented cache version change in proxy_cache_path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1956
diff
changeset
|
522 ранее закэшированные ответы будут считаться недействительными. |
3460bd328287
Documented cache version change in proxy_cache_path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1956
diff
changeset
|
523 </note> |
3460bd328287
Documented cache version change in proxy_cache_path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1956
diff
changeset
|
524 </para> |
3460bd328287
Documented cache version change in proxy_cache_path and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1956
diff
changeset
|
525 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
526 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
527 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
528 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
529 <directive name="scgi_cache_purge"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
530 <syntax>строка ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
531 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
532 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
533 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
534 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
535 <appeared-in>1.5.7</appeared-in> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
536 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
537 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
538 Задаёт условия, при которых запрос будет считаться запросом |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
539 на очистку кэша. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
540 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
541 то запись в кэше с соответствующим |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
542 <link id="scgi_cache_key">ключом кэширования</link> удаляется. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
543 В результате успешной операции возвращается ответ с кодом |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
544 <http-status code="204" text="No Content"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
545 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
546 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
547 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
548 Если <link id="scgi_cache_key">ключ кэширования</link> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
549 запроса на очистку заканчивается |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
550 звёздочкой (“<literal>*</literal>”), то все записи в кэше, соответствующие |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
551 этой маске, будут удалены из кэша. |
1582
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
552 Тем не менее, эти записи будут оставаться на диске или до момента удаления |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
553 из-за <link id="scgi_cache_path">отсутствия обращения к данным</link>, |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
554 или до обработки их процессом “<link id="purger">cache purger</link>” (1.7.12), |
8973c7b37854
Updated commercial docs.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1550
diff
changeset
|
555 или до попытки клиента получить к ним доступ. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
556 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
557 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
558 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
559 Пример конфигурации: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
560 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
561 scgi_cache_path /data/nginx/cache keys_zone=cache_zone:10m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
562 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
563 map $request_method $purge_method { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
564 PURGE 1; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
565 default 0; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
566 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
567 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
568 server { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
569 ... |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
570 location / { |
1185
f9c8336fe43c
Aligned configuration examples with fastcgi/scgi_cache_purge.
Ruslan Ermilov <ru@nginx.com>
parents:
1184
diff
changeset
|
571 scgi_pass http://backend; |
f9c8336fe43c
Aligned configuration examples with fastcgi/scgi_cache_purge.
Ruslan Ermilov <ru@nginx.com>
parents:
1184
diff
changeset
|
572 scgi_cache cache_zone; |
f9c8336fe43c
Aligned configuration examples with fastcgi/scgi_cache_purge.
Ruslan Ermilov <ru@nginx.com>
parents:
1184
diff
changeset
|
573 scgi_cache_key $uri; |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
574 scgi_cache_purge $purge_method; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
575 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
576 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
577 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
578 <note> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
579 Функциональность доступна как часть |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
580 <commercial_version>коммерческой подписки</commercial_version>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
581 </note> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
582 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
583 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
584 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
585 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
586 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
587 <directive name="scgi_cache_revalidate"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
588 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
589 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
590 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
591 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
592 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
593 <appeared-in>1.5.7</appeared-in> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
594 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
595 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
596 Разрешает ревалидацию просроченных элементов кэша при помощи |
1246
5be7716a5684
Documented If-None-Match in proxy_cache_revalidate and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1190
diff
changeset
|
597 условных запросов с полями заголовка |
5be7716a5684
Documented If-None-Match in proxy_cache_revalidate and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1190
diff
changeset
|
598 <header>If-Modified-Since</header> и <header>If-None-Match</header>. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
599 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
600 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
601 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
602 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
603 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
604 <directive name="scgi_cache_use_stale"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
605 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
606 <literal>error</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
607 <literal>timeout</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
608 <literal>invalid_header</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
609 <literal>updating</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
610 <literal>http_500</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
611 <literal>http_503</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
612 <literal>http_403</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
613 <literal>http_404</literal> | |
1956
dd96a09dd4f7
Documented support for "429 Too Many Requests" response.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1923
diff
changeset
|
614 <literal>http_429</literal> | |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
615 <literal>off</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
616 ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
617 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
618 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
619 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
620 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
621 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
622 <para> |
1910
41cf2c2d8c5c
Cache: support for stale-while-revalidate and stale-if-error.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1909
diff
changeset
|
623 Определяет, в каких случаях можно использовать устаревший закэшированный ответ. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
624 Параметры директивы совпадают с параметрами |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
625 директивы <link id="scgi_next_upstream"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
626 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
627 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
628 <para> |
1542
a13a99cf46ea
Better documented "*_cache_use_stale error".
Ruslan Ermilov <ru@nginx.com>
parents:
1524
diff
changeset
|
629 Параметр <literal>error</literal> также позволяет использовать |
a13a99cf46ea
Better documented "*_cache_use_stale error".
Ruslan Ermilov <ru@nginx.com>
parents:
1524
diff
changeset
|
630 устаревший закэшированный ответ при невозможности выбора |
a13a99cf46ea
Better documented "*_cache_use_stale error".
Ruslan Ermilov <ru@nginx.com>
parents:
1524
diff
changeset
|
631 SCGI-сервера для обработки запроса. |
a13a99cf46ea
Better documented "*_cache_use_stale error".
Ruslan Ermilov <ru@nginx.com>
parents:
1524
diff
changeset
|
632 </para> |
a13a99cf46ea
Better documented "*_cache_use_stale error".
Ruslan Ermilov <ru@nginx.com>
parents:
1524
diff
changeset
|
633 |
1909
399d0e188195
Documented proxy_cache_background_update and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1885
diff
changeset
|
634 <para id="scgi_cache_use_stale_updating"> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
635 Кроме того, дополнительный параметр <literal>updating</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
636 разрешает использовать устаревший закэшированный ответ, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
637 если на данный момент он уже обновляется. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
638 Это позволяет минимизировать число обращений к SCGI-серверам |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
639 при обновлении закэшированных данных. |
1912
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
640 </para> |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
641 |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
642 <para> |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
643 Использование устаревшего закэшированного ответа |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
644 может также быть разрешено непосредственно в заголовке ответа |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
645 на определённое количество секунд после того, как ответ устарел (1.11.10). |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
646 Такой способ менее приоритетен, чем задание параметров директивы. |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
647 <list type="bullet" compact="no"> |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
648 |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
649 <listitem> |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
650 Расширение |
1910
41cf2c2d8c5c
Cache: support for stale-while-revalidate and stale-if-error.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1909
diff
changeset
|
651 “<link url="https://tools.ietf.org/html/rfc5861#section-3">stale-while-revalidate</link>” |
1912
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
652 поля заголовка <header>Cache-Control</header> разрешает |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
653 использовать устаревший закэшированный ответ, |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
654 если на данный момент он уже обновляется. |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
655 </listitem> |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
656 |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
657 <listitem> |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
658 Расширение |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
659 “<link url="https://tools.ietf.org/html/rfc5861#section-4">stale-if-error</link>” |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
660 поля заголовка <header>Cache-Control</header> разрешает |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
661 использовать устаревший закэшированный ответ в случае ошибки. |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
662 </listitem> |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
663 |
ec4af97e4403
Split off header options from parameters in proxy_cache_use_stale and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1910
diff
changeset
|
664 </list> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
665 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
666 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
667 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
668 Чтобы минимизировать число обращений к SCGI-серверам при |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
669 заполнении нового элемента кэша, можно воспользоваться директивой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
670 <link id="scgi_cache_lock"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
671 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
672 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
673 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
674 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
675 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
676 <directive name="scgi_cache_valid"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
677 <syntax>[<value>код</value> ...] <value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
678 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
679 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
680 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
681 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
682 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
683 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
684 Задаёт время кэширования для разных кодов ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
685 Например, директивы |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
686 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
687 scgi_cache_valid 200 302 10m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
688 scgi_cache_valid 404 1m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
689 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
690 задают время кэширования 10 минут для ответов с кодами 200 и 302 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
691 и 1 минуту для ответов с кодом 404. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
692 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
693 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
694 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
695 Если указано только <value>время</value> кэширования, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
696 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
697 scgi_cache_valid 5m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
698 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
699 то кэшируются только ответы 200, 301 и 302. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
700 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
701 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
702 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
703 Кроме того, можно кэшировать любые ответы с помощью параметра |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
704 <literal>any</literal>: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
705 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
706 scgi_cache_valid 200 302 10m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
707 scgi_cache_valid 301 1h; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
708 scgi_cache_valid any 1m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
709 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
710 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
711 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
712 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
713 Параметры кэширования могут также быть заданы непосредственно |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
714 в заголовке ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
715 Такой способ приоритетнее, чем задание времени кэширования с помощью директивы. |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
716 <list type="bullet" compact="no"> |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
717 |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
718 <listitem> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
719 Поле заголовка <header>X-Accel-Expires</header> задаёт время кэширования |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
720 ответа в секундах. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
721 Значение 0 запрещает кэшировать ответ. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
722 Если значение начинается с префикса <literal>@</literal>, оно задаёт абсолютное |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
723 время в секундах с начала эпохи, до которого ответ может быть закэширован. |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
724 </listitem> |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
725 |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
726 <listitem> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
727 Если в заголовке нет поля <header>X-Accel-Expires</header>, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
728 параметры кэширования определяются по полям заголовка |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
729 <header>Expires</header> или <header>Cache-Control</header>. |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
730 </listitem> |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
731 |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
732 <listitem> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
733 Ответ, в заголовке которого есть поле <header>Set-Cookie</header>, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
734 не будет кэшироваться. |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
735 </listitem> |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
736 |
1353
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
737 <listitem> |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
738 Ответ, в заголовке которого есть поле <header>Vary</header> |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
739 со специальным значением “<literal>*</literal>”, |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
740 не будет кэшироваться (1.7.7). |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
741 Ответ, в заголовке которого есть поле <header>Vary</header> |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
742 с другим значением, будет закэширован |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
743 с учётом соответствующих полей заголовка запроса (1.7.7). |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
744 </listitem> |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
745 |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
746 </list> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
747 Обработка одного или более из этих полей заголовка может быть отключена |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
748 при помощи директивы <link id="scgi_ignore_headers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
749 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
750 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
751 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
752 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
753 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
754 <directive name="scgi_connect_timeout"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
755 <syntax><value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
756 <default>60s</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
757 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
758 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
759 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
760 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
761 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
762 Задаёт таймаут для установления соединения с SCGI-сервером. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
763 Необходимо иметь в виду, что этот таймаут обычно не может превышать 75 секунд. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
764 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
765 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
766 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
767 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
768 |
1337
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
769 <directive name="scgi_force_ranges"> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
770 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
771 <default>off</default> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
772 <context>http</context> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
773 <context>server</context> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
774 <context>location</context> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
775 <appeared-in>1.7.7</appeared-in> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
776 |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
777 <para> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
778 Включает поддержку диапазонов запрашиваемых байт (byte-range) |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
779 для кэшированных и некэшированных ответов SCGI-сервера |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
780 вне зависимости от наличия поля <header>Accept-Ranges</header> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
781 в заголовках этих ответов. |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
782 </para> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
783 |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
784 </directive> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
785 |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
786 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
787 <directive name="scgi_hide_header"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
788 <syntax><value>поле</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
789 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
790 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
791 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
792 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
793 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
794 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
795 По умолчанию |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
796 nginx не передаёт клиенту поля заголовка <header>Status</header> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
797 <header>X-Accel-...</header> из ответа SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
798 Директива <literal>scgi_hide_header</literal> задаёт дополнительные поля, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
799 которые не будут передаваться. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
800 Если же передачу полей нужно разрешить, можно воспользоваться |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
801 директивой <link id="scgi_pass_header"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
802 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
803 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
804 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
805 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
806 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
807 <directive name="scgi_ignore_client_abort"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
808 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
809 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
810 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
811 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
812 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
813 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
814 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
815 Определяет, закрывать ли соединение с SCGI-сервером |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
816 в случае, если клиент закрыл соединение, не дождавшись ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
817 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
818 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
819 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
820 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
821 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
822 <directive name="scgi_ignore_headers"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
823 <syntax><value>поле</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
824 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
825 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
826 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
827 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
828 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
829 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
830 Запрещает обработку некоторых полей заголовка из ответа SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
831 В директиве можно указать поля <header>X-Accel-Redirect</header>, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
832 <header>X-Accel-Expires</header>, <header>X-Accel-Limit-Rate</header> (1.1.6), |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
833 <header>X-Accel-Buffering</header> (1.1.6), |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
834 <header>X-Accel-Charset</header> (1.1.6), <header>Expires</header>, |
1345
da296387cdac
Documented the Vary support in proxy_ignore_headers and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1343
diff
changeset
|
835 <header>Cache-Control</header>, <header>Set-Cookie</header> (0.8.44) |
da296387cdac
Documented the Vary support in proxy_ignore_headers and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1343
diff
changeset
|
836 и <header>Vary</header> (1.7.7). |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
837 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
838 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
839 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
840 Если не запрещено, обработка этих полей заголовка заключается в следующем: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
841 <list type="bullet" compact="no"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
842 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
843 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
844 <header>X-Accel-Expires</header>, <header>Expires</header>, |
1345
da296387cdac
Documented the Vary support in proxy_ignore_headers and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1343
diff
changeset
|
845 <header>Cache-Control</header>, <header>Set-Cookie</header> |
da296387cdac
Documented the Vary support in proxy_ignore_headers and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1343
diff
changeset
|
846 и <header>Vary</header> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
847 задают параметры <link id="scgi_cache_valid">кэширования</link> ответа; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
848 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
849 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
850 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
851 <header>X-Accel-Redirect</header> производит |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
852 <link doc="ngx_http_core_module.xml" id="internal">внутреннее |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
853 перенаправление</link> на указанный URI; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
854 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
855 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
856 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
857 <header>X-Accel-Limit-Rate</header> задаёт |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
858 <link doc="ngx_http_core_module.xml" id="limit_rate">ограничение |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
859 скорости</link> передачи ответа клиенту; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
860 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
861 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
862 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
863 <header>X-Accel-Buffering</header> включает или выключает |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
864 <link id="scgi_buffering">буферизацию</link> ответа; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
865 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
866 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
867 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
868 <header>X-Accel-Charset</header> задаёт желаемую |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
869 <link doc="ngx_http_charset_module.xml" id="charset">кодировку</link> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
870 ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
871 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
872 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
873 </list> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
874 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
875 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
876 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
877 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
878 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
879 <directive name="scgi_intercept_errors"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
880 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
881 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
882 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
883 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
884 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
885 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
886 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
887 Определяет, передавать ли клиенту ответы SCGI-сервера с кодом |
1803
621d0c682113
Clarified description of proxy_intercept_errors and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1796
diff
changeset
|
888 больше либо равным 300, |
1804
d655cfd46c26
Corrected Russian translation of proxy_intercept_errors and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1803
diff
changeset
|
889 или же перехватывать их и перенаправлять на обработку nginx’у с помощью |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
890 директивы <link doc="ngx_http_core_module.xml" id="error_page"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
891 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
892 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
893 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
894 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
895 |
1342
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
896 <directive name="scgi_limit_rate"> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
897 <syntax><value>скорость</value></syntax> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
898 <default>0</default> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
899 <context>http</context> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
900 <context>server</context> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
901 <context>location</context> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
902 <appeared-in>1.7.7</appeared-in> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
903 |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
904 <para> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
905 Ограничивает скорость чтения ответа от SCGI-сервера. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
906 <value>Скорость</value> задаётся в байтах в секунду. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
907 Значение 0 отключает ограничение скорости. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
908 Ограничение устанавливается на запрос, |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
909 поэтому, если nginx одновременно |
1343
1bdde28e359b
Fixed fallouts from the previous change.
Ruslan Ermilov <ru@nginx.com>
parents:
1342
diff
changeset
|
910 откроет два соединения к SCGI-серверу, |
1bdde28e359b
Fixed fallouts from the previous change.
Ruslan Ermilov <ru@nginx.com>
parents:
1342
diff
changeset
|
911 суммарная скорость будет вдвое выше заданного ограничения. |
1342
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
912 Ограничение работает только в случае, если включена |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
913 <link id="scgi_buffering">буферизация</link> ответов SCGI-сервера. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
914 </para> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
915 |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
916 </directive> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
917 |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
918 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
919 <directive name="scgi_max_temp_file_size"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
920 <syntax><value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
921 <default>1024m</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
922 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
923 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
924 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
925 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
926 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
927 Если включена <link id="scgi_buffering">буферизация</link> ответов |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
928 SCGI-сервера, и ответ не вмещается целиком в буферы, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
929 заданные директивами <link id="scgi_buffer_size"/> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
930 <link id="scgi_buffers"/>, часть ответа может быть записана во временный файл. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
931 Эта директива задаёт максимальный <value>размер</value> временного файла. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
932 Размер данных, сбрасываемых во временный файл за один раз, задаётся |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
933 директивой <link id="scgi_temp_file_write_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
934 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
935 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
936 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
937 Значение 0 отключает возможность буферизации ответов во временные файлы. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
938 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
939 |
1352
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
940 <para> |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
941 <note> |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
942 Данное ограничение не распространяется на ответы, |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
943 которые будут <link id="scgi_cache">закэшированы</link> |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
944 или <link id="scgi_store">сохранены</link> на диске. |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
945 </note> |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
946 </para> |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
947 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
948 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
949 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
950 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
951 <directive name="scgi_next_upstream"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
952 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
953 <literal>error</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
954 <literal>timeout</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
955 <literal>invalid_header</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
956 <literal>http_500</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
957 <literal>http_503</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
958 <literal>http_403</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
959 <literal>http_404</literal> | |
1956
dd96a09dd4f7
Documented support for "429 Too Many Requests" response.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1923
diff
changeset
|
960 <literal>http_429</literal> | |
1669
c872b93682f4
Added "non_idempotent" for proxy_next_upstream and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1659
diff
changeset
|
961 <literal>non_idempotent</literal> | |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
962 <literal>off</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
963 ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
964 <default>error timeout</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
965 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
966 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
967 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
968 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
969 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
970 Определяет, в каких случаях запрос будет передан следующему серверу: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
971 <list type="tag"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
972 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
973 <tag-name><literal>error</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
974 <tag-desc>произошла ошибка соединения с сервером, передачи ему запроса или |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
975 чтения заголовка ответа сервера;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
976 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
977 <tag-name><literal>timeout</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
978 <tag-desc>произошёл таймаут во время соединения с сервером, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
979 передачи ему запроса или чтения заголовка ответа сервера;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
980 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
981 <tag-name><literal>invalid_header</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
982 <tag-desc>сервер вернул пустой или неверный ответ;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
983 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
984 <tag-name><literal>http_500</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
985 <tag-desc>сервер вернул ответ с кодом 500;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
986 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
987 <tag-name><literal>http_503</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
988 <tag-desc>сервер вернул ответ с кодом 503;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
989 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
990 <tag-name><literal>http_403</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
991 <tag-desc>сервер вернул ответ с кодом 403;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
992 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
993 <tag-name><literal>http_404</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
994 <tag-desc>сервер вернул ответ с кодом 404;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
995 |
1956
dd96a09dd4f7
Documented support for "429 Too Many Requests" response.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1923
diff
changeset
|
996 <tag-name><literal>http_429</literal></tag-name> |
dd96a09dd4f7
Documented support for "429 Too Many Requests" response.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1923
diff
changeset
|
997 <tag-desc>сервер вернул ответ с кодом 429 (1.11.13);</tag-desc> |
dd96a09dd4f7
Documented support for "429 Too Many Requests" response.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1923
diff
changeset
|
998 |
1669
c872b93682f4
Added "non_idempotent" for proxy_next_upstream and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1659
diff
changeset
|
999 <tag-name id="non_idempotent"><literal>non_idempotent</literal></tag-name> |
c872b93682f4
Added "non_idempotent" for proxy_next_upstream and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1659
diff
changeset
|
1000 <tag-desc>обычно запросы с |
1923
66a30a380fba
Fixed links to tools.ietf.org.
Ruslan Ermilov <ru@nginx.com>
parents:
1912
diff
changeset
|
1001 <link url="https://tools.ietf.org/html/rfc7231#section-4.2.2">неидемпотентным</link> |
1669
c872b93682f4
Added "non_idempotent" for proxy_next_upstream and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1659
diff
changeset
|
1002 методом |
c872b93682f4
Added "non_idempotent" for proxy_next_upstream and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1659
diff
changeset
|
1003 (<literal>POST</literal>, <literal>LOCK</literal>, <literal>PATCH</literal>) |
c872b93682f4
Added "non_idempotent" for proxy_next_upstream and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1659
diff
changeset
|
1004 не передаются на другой сервер, |
c872b93682f4
Added "non_idempotent" for proxy_next_upstream and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1659
diff
changeset
|
1005 если запрос серверу группы уже был отправлен (1.9.13); |
c872b93682f4
Added "non_idempotent" for proxy_next_upstream and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1659
diff
changeset
|
1006 включение параметра явно разрешает повторять подобные запросы; |
c872b93682f4
Added "non_idempotent" for proxy_next_upstream and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1659
diff
changeset
|
1007 </tag-desc> |
c872b93682f4
Added "non_idempotent" for proxy_next_upstream and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1659
diff
changeset
|
1008 |
c872b93682f4
Added "non_idempotent" for proxy_next_upstream and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1659
diff
changeset
|
1009 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1010 <tag-name><literal>off</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1011 <tag-desc>запрещает передачу запроса следующему серверу.</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1012 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1013 </list> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1014 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1015 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1016 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1017 Необходимо понимать, что передача запроса следующему серверу возможна |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1018 только при условии, что клиенту ещё ничего не передавалось. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1019 То есть, если ошибка или таймаут возникли в середине передачи ответа, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1020 то исправить это уже невозможно. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1021 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1022 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1023 <para> |
1289
57fc39924d42
Proxy/memcached/fastcgi/scgi/uwsgi: updated link in _next_upstream directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1246
diff
changeset
|
1024 Директива также определяет, что считается |
57fc39924d42
Proxy/memcached/fastcgi/scgi/uwsgi: updated link in _next_upstream directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1246
diff
changeset
|
1025 <link doc="ngx_http_upstream_module.xml" id="max_fails">неудачной |
57fc39924d42
Proxy/memcached/fastcgi/scgi/uwsgi: updated link in _next_upstream directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1246
diff
changeset
|
1026 попыткой</link> работы с сервером. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1027 Случаи <literal>error</literal>, <literal>timeout</literal> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1028 <literal>invalid_header</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1029 всегда считаются неудачными попытками, даже если они не указаны в директиве. |
1956
dd96a09dd4f7
Documented support for "429 Too Many Requests" response.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1923
diff
changeset
|
1030 Случаи <literal>http_500</literal>, <literal>http_503</literal> |
dd96a09dd4f7
Documented support for "429 Too Many Requests" response.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1923
diff
changeset
|
1031 и <literal>http_429</literal> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1032 считаются неудачными попытками, только если они указаны в директиве. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1033 Случаи <literal>http_403</literal> и <literal>http_404</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1034 никогда не считаются неудачными попытками. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1035 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1036 |
1290
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1037 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1038 Передача запроса следующему серверу может быть ограничена по |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1039 <link id="scgi_next_upstream_tries">количеству попыток</link> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1040 и по <link id="scgi_next_upstream_timeout">времени</link>. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1041 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1042 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1043 </directive> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1044 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1045 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1046 <directive name="scgi_next_upstream_timeout"> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1047 <syntax><value>время</value></syntax> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1048 <default>0</default> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1049 <context>http</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1050 <context>server</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1051 <context>location</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1052 <appeared-in>1.7.5</appeared-in> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1053 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1054 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1055 Ограничивает время, в течение которого возможна передача запроса |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1056 <link id="scgi_next_upstream">следующему серверу</link>. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1057 Значение <literal>0</literal> отключает это ограничение. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1058 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1059 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1060 </directive> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1061 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1062 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1063 <directive name="scgi_next_upstream_tries"> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1064 <syntax><value>число</value></syntax> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1065 <default>0</default> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1066 <context>http</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1067 <context>server</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1068 <context>location</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1069 <appeared-in>1.7.5</appeared-in> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1070 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1071 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1072 Ограничивает число допустимых попыток для передачи запроса |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1073 <link id="scgi_next_upstream">следующему серверу</link>. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1074 Значение <literal>0</literal> отключает это ограничение. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1075 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
1076 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1077 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1078 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1079 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1080 <directive name="scgi_no_cache"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1081 <syntax><value>строка</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1082 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1083 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1084 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1085 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1086 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1087 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1088 Задаёт условия, при которых ответ не будет сохраняться в кэш. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1089 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1090 то ответ не будет сохранён: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1091 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1092 scgi_no_cache $cookie_nocache $arg_nocache$arg_comment; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1093 scgi_no_cache $http_pragma $http_authorization; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1094 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1095 Можно использовать совместно с директивой <link id="scgi_cache_bypass"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1096 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1097 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1098 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1099 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1100 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1101 <directive name="scgi_param"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1102 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1103 <value>параметр</value> <value>значение</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1104 [<literal>if_not_empty</literal>]</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1105 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1106 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1107 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1108 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1109 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1110 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1111 Задаёт <value>параметр</value>, который будет передаваться SCGI-серверу. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1112 В качестве значения можно использовать текст, переменные и их комбинации. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1113 Директивы наследуются с предыдущего уровня при условии, что на данном |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1114 уровне не описаны свои директивы <literal>scgi_param</literal>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1115 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1116 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1117 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1118 Стандартные |
1923
66a30a380fba
Fixed links to tools.ietf.org.
Ruslan Ermilov <ru@nginx.com>
parents:
1912
diff
changeset
|
1119 <link url="https://tools.ietf.org/html/rfc3875#section-4.1">переменные |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1120 окружения CGI</link> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1121 должны передаваться как заголовки SCGI, см. файл <path>scgi_params</path> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1122 из дистрибутива: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1123 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1124 location / { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1125 include scgi_params; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1126 ... |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1127 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1128 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1129 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1130 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1131 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1132 Если директива указана с <literal>if_not_empty</literal> (1.1.11), |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1133 то такой параметр с пустым значением передаваться на сервер не будет: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1134 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1135 scgi_param HTTPS $https if_not_empty; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1136 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1137 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1138 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1139 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1140 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1141 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1142 <directive name="scgi_pass"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1143 <syntax><value>адрес</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1144 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1145 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1146 <context>if в location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1147 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1148 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1149 Задаёт адрес SCGI-сервера. |
1622
c4c1dddfedac
Unified *_pass address descriptions.
Ruslan Ermilov <ru@nginx.com>
parents:
1582
diff
changeset
|
1150 Адрес может быть указан в виде доменного имени или IP-адреса, |
c4c1dddfedac
Unified *_pass address descriptions.
Ruslan Ermilov <ru@nginx.com>
parents:
1582
diff
changeset
|
1151 и порта: |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1152 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1153 scgi_pass localhost:9000; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1154 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1155 или в виде пути UNIX-сокета: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1156 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1157 scgi_pass unix:/tmp/scgi.socket; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1158 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1159 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1160 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1161 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1162 Если доменному имени соответствует несколько адресов, то все они будут |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1163 использоваться по очереди (round-robin). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1164 И, кроме того, адрес может быть |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1165 <link doc="ngx_http_upstream_module.xml">группой серверов</link>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1166 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1167 |
1991
4f3dd2f548cf
Documented variables in fastcgi_pass, scgi_pass, and uwsgi_pass.
Ruslan Ermilov <ru@nginx.com>
parents:
1973
diff
changeset
|
1168 <para> |
4f3dd2f548cf
Documented variables in fastcgi_pass, scgi_pass, and uwsgi_pass.
Ruslan Ermilov <ru@nginx.com>
parents:
1973
diff
changeset
|
1169 В значении параметра можно использовать переменные. |
4f3dd2f548cf
Documented variables in fastcgi_pass, scgi_pass, and uwsgi_pass.
Ruslan Ermilov <ru@nginx.com>
parents:
1973
diff
changeset
|
1170 В этом случае, если адрес указан в виде доменного имени, |
4f3dd2f548cf
Documented variables in fastcgi_pass, scgi_pass, and uwsgi_pass.
Ruslan Ermilov <ru@nginx.com>
parents:
1973
diff
changeset
|
1171 имя ищется среди описанных |
4f3dd2f548cf
Documented variables in fastcgi_pass, scgi_pass, and uwsgi_pass.
Ruslan Ermilov <ru@nginx.com>
parents:
1973
diff
changeset
|
1172 <link doc="ngx_http_upstream_module.xml">групп серверов</link> |
4f3dd2f548cf
Documented variables in fastcgi_pass, scgi_pass, and uwsgi_pass.
Ruslan Ermilov <ru@nginx.com>
parents:
1973
diff
changeset
|
1173 и если не найдено, то определяется с помощью |
4f3dd2f548cf
Documented variables in fastcgi_pass, scgi_pass, and uwsgi_pass.
Ruslan Ermilov <ru@nginx.com>
parents:
1973
diff
changeset
|
1174 <link doc="ngx_http_core_module.xml" id="resolver"/>’а. |
4f3dd2f548cf
Documented variables in fastcgi_pass, scgi_pass, and uwsgi_pass.
Ruslan Ermilov <ru@nginx.com>
parents:
1973
diff
changeset
|
1175 </para> |
4f3dd2f548cf
Documented variables in fastcgi_pass, scgi_pass, and uwsgi_pass.
Ruslan Ermilov <ru@nginx.com>
parents:
1973
diff
changeset
|
1176 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1177 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1178 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1179 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1180 <directive name="scgi_pass_header"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1181 <syntax><value>поле</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1182 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1183 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1184 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1185 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1186 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1187 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1188 Разрешает передавать от SCGI-сервера клиенту |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1189 <link id="scgi_hide_header">запрещённые для передачи</link> поля заголовка. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1190 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1191 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1192 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1193 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1194 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1195 <directive name="scgi_pass_request_body"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1196 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1197 <default>on</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1198 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1199 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1200 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1201 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1202 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1203 Позволяет запретить передачу исходного тела запроса |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1204 на SCGI-сервер. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1205 См. также директиву <link id="scgi_pass_request_headers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1206 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1207 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1208 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1209 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1210 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1211 <directive name="scgi_pass_request_headers"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1212 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1213 <default>on</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1214 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1215 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1216 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1217 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1218 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1219 Позволяет запретить передачу полей заголовка исходного запроса на |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1220 SCGI-сервер. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1221 См. также директивы <link id="scgi_pass_request_body"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1222 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1223 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1224 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1225 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1226 |
1524
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1227 <directive name="scgi_read_timeout"> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1228 <syntax><value>время</value></syntax> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1229 <default>60s</default> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1230 <context>http</context> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1231 <context>server</context> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1232 <context>location</context> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1233 |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1234 <para> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1235 Задаёт таймаут при чтении ответа SCGI-сервера. |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1236 Таймаут устанавливается не на всю передачу ответа, |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1237 а только между двумя операциями чтения. |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1238 Если по истечении этого времени SCGI-сервер ничего не передаст, |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1239 соединение закрывается. |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1240 </para> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1241 |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1242 </directive> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1243 |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1244 |
1437
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1245 <directive name="scgi_request_buffering"> |
1659
680cbf783efe
Fixed some misuses of "value".
Ruslan Ermilov <ru@nginx.com>
parents:
1622
diff
changeset
|
1246 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1437
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1247 <default>on</default> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1248 <context>http</context> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1249 <context>server</context> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1250 <context>location</context> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1251 <appeared-in>1.7.11</appeared-in> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1252 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1253 <para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1254 Разрешает или запрещает использовать буферизацию тела запроса клиента. |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1255 </para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1256 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1257 <para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1258 Если буферизация включена, то тело запроса полностью |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1259 <link doc="ngx_http_core_module.xml" id="client_body_buffer_size">читается</link> |
1440
657885fd2b96
Corrected description of proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1437
diff
changeset
|
1260 от клиента перед отправкой запроса на SCGI-сервер. |
1437
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1261 </para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1262 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1263 <para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1264 Если буферизация выключена, то тело запроса отправляется |
1440
657885fd2b96
Corrected description of proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1437
diff
changeset
|
1265 на SCGI-сервер сразу же по мере его поступления. |
657885fd2b96
Corrected description of proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1437
diff
changeset
|
1266 В этом случае запрос не может быть передан |
657885fd2b96
Corrected description of proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1437
diff
changeset
|
1267 <link id="scgi_next_upstream">следующему серверу</link>, |
657885fd2b96
Corrected description of proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1437
diff
changeset
|
1268 если nginx уже начал отправку тела запроса. |
1437
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1269 </para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1270 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1271 <para> |
1440
657885fd2b96
Corrected description of proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1437
diff
changeset
|
1272 Если для отправки тела исходного запроса используется HTTP/1.1 |
1437
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1273 и передача данных частями (chunked transfer encoding), |
1443
a55553729d63
Unified text of scgi and uwsgi request buffering with proxy.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1440
diff
changeset
|
1274 то тело запроса буферизуется независимо от значения директивы. |
1437
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1275 </para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1276 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1277 </directive> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1278 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1279 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1280 <directive name="scgi_send_timeout"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1281 <syntax><value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1282 <default>60s</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1283 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1284 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1285 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1286 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1287 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1288 Задаёт таймаут при передаче запроса SCGI-серверу. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1289 Таймаут устанавливается не на всю передачу запроса, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1290 а только между двумя операциями записи. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1291 Если по истечении этого времени SCGI-сервер не примет новых данных, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1292 соединение закрывается. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1293 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1294 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1295 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1296 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1297 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1298 <directive name="scgi_store"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1299 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1300 <literal>on</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1301 <literal>off</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1302 <value>строка</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1303 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1304 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1305 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1306 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1307 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1308 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1309 Разрешает сохранение на диск файлов. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1310 Параметр <literal>on</literal> сохраняет файлы в соответствии с путями, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1311 указанными в директивах |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1312 <link doc="ngx_http_core_module.xml" id="alias"/> или |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1313 <link doc="ngx_http_core_module.xml" id="root"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1314 Параметр <literal>off</literal> запрещает сохранение файлов. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1315 Кроме того, имя файла можно задать явно с помощью строки с переменными: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1316 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1317 scgi_store /data/www$original_uri; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1318 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1319 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1320 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1321 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1322 Время изменения файлов выставляется согласно полученному полю |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1323 <header>Last-Modified</header> в заголовке ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1324 Ответ сначала записывается во временный файл, а потом этот файл |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1325 переименовывается. |
1724
ce3e89d13fa0
Removed unneeded comma in "Since ..." Russian constructs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1696
diff
changeset
|
1326 Начиная с версии 0.8.9 временный файл и постоянное место хранения ответа |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1327 могут располагаться на разных файловых системах. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1328 Однако нужно учитывать, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1329 что в этом случае вместо дешёвой операции переименовывания в пределах |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1330 одной файловой системы файл копируется с одной файловой системы на другую. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1331 Поэтому лучше, если сохраняемые файлы будут находиться на той же файловой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1332 системе, что и каталог с временными файлами, задаваемый директивой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1333 <link id="scgi_temp_path"/> для данного location. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1334 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1335 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1336 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1337 Директиву можно использовать для создания локальных копий статических |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1338 неизменяемых файлов, например, так: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1339 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1340 location /images/ { |
1184
55857cbf562d
Fixed alignment issues after mechanical conversion from fastcgi.
Ruslan Ermilov <ru@nginx.com>
parents:
1183
diff
changeset
|
1341 root /data/www; |
55857cbf562d
Fixed alignment issues after mechanical conversion from fastcgi.
Ruslan Ermilov <ru@nginx.com>
parents:
1183
diff
changeset
|
1342 error_page 404 = /fetch$uri; |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1343 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1344 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1345 location /fetch/ { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1346 internal; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1347 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1348 scgi_pass backend:9000; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1349 ... |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1350 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1351 scgi_store on; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1352 scgi_store_access user:rw group:rw all:r; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1353 scgi_temp_path /data/temp; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1354 |
1184
55857cbf562d
Fixed alignment issues after mechanical conversion from fastcgi.
Ruslan Ermilov <ru@nginx.com>
parents:
1183
diff
changeset
|
1355 alias /data/www/; |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1356 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1357 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1358 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1359 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1360 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1361 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1362 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1363 <directive name="scgi_store_access"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1364 <syntax><value>пользователи</value>:<value>права</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1365 <default>user:rw</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1366 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1367 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1368 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1369 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1370 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1371 Задаёт права доступа для создаваемых файлов и каталогов, например, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1372 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1373 scgi_store_access user:rw group:rw all:r; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1374 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1375 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1376 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1377 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1378 Если заданы какие-либо права для <literal>group</literal> или |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1379 <literal>all</literal>, то права для <literal>user</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1380 указывать необязательно: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1381 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1382 scgi_store_access group:rw all:r; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1383 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1384 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1385 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1386 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1387 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1388 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1389 <directive name="scgi_temp_file_write_size"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1390 <syntax><value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1391 <default>8k|16k</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1392 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1393 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1394 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1395 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1396 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1397 Ограничивает <value>размер</value> данных, сбрасываемых во временный файл |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1398 за один раз, при включённой буферизации ответов SCGI-сервера |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1399 во временные файлы. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1400 По умолчанию <value>размер</value> ограничен двумя буферами, заданными |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1401 директивами <link id="scgi_buffer_size"/> и <link id="scgi_buffers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1402 Максимальный размер временного файла задаётся директивой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1403 <link id="scgi_max_temp_file_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1404 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1405 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1406 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1407 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1408 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1409 <directive name="scgi_temp_path"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1410 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1411 <value>путь</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1412 [<value>уровень1</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1413 [<value>уровень2</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1414 [<value>уровень3</value>]]]</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1415 <default>scgi_temp</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1416 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1417 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1418 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1419 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1420 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1421 Задаёт имя каталога для хранения временных файлов с данными, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1422 полученными от SCGI-серверов. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1423 В каталоге может использоваться иерархия подкаталогов до трёх уровней. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1424 Например, при такой конфигурации |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1425 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1426 scgi_temp_path /spool/nginx/scgi_temp 1 2; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1427 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1428 временный файл будет следующего вида: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1429 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1430 /spool/nginx/scgi_temp/<emphasis>7</emphasis>/<emphasis>45</emphasis>/00000123<emphasis>457</emphasis> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1431 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1432 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1433 |
1384
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
1434 <para> |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
1435 См. также параметр <literal>use_temp_path</literal> директивы |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
1436 <link id="scgi_cache_path"/>. |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
1437 </para> |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
1438 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1439 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1440 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1441 </section> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1442 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1443 </module> |