Mercurial > hg > nginx-site
annotate xml/ru/docs/http/ngx_http_scgi_module.xml @ 1559:d876f94135ac
Added info about limiting access to status.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 07 Sep 2015 09:06:49 +0300 |
parents | 305f2c338181 |
children | 8973c7b37854 |
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" |
1550
305f2c338181
Fixed description of default value of proxy_buffer_size and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1542
diff
changeset
|
13 rev="20"> |
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"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
42 <syntax><value>адрес</value> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
43 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
44 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
45 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
46 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
47 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
48 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
49 Задаёт локальный IP-<value>адрес</value>, который будет использоваться в |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
50 исходящих соединениях с SCGI-сервером. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
51 В значении параметра допустимо использование переменных (1.3.12). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
52 Специальное значение <literal>off</literal> (1.3.12) отменяет действие |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
53 унаследованной с предыдущего уровня конфигурации |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
54 директивы <literal>scgi_bind</literal>, позволяя системе |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
55 самостоятельно выбирать локальный IP-адрес. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
56 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
57 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
58 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
59 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
60 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
61 <directive name="scgi_buffer_size"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
62 <syntax><value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
63 <default>4k|8k</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
64 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
65 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
66 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
67 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
68 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
69 Задаёт <value>размер</value> буфера, в который будет читаться |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
70 первая часть ответа, получаемого от SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
71 В этой части ответа находится, как правило, небольшой заголовок ответа. |
1550
305f2c338181
Fixed description of default value of proxy_buffer_size and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1542
diff
changeset
|
72 По умолчанию размер одного буфера равен размеру страницы памяти. |
305f2c338181
Fixed description of default value of proxy_buffer_size and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1542
diff
changeset
|
73 В зависимости от платформы это или 4K, или 8K, |
305f2c338181
Fixed description of default value of proxy_buffer_size and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1542
diff
changeset
|
74 однако его можно сделать меньше. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
75 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
76 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
77 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
80 <directive name="scgi_buffering"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
81 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
82 <default>on</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
83 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
84 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
85 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
86 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
87 <para> |
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 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
90 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
91 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
92 Если буферизация включена, то nginx принимает ответ SCGI-сервера |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
93 как можно быстрее, сохраняя его в буферы, заданные директивами |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
94 <link id="scgi_buffer_size"/> и <link id="scgi_buffers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
95 Если ответ не вмещается целиком в память, то его часть может быть записана |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
96 на диск во <link id="scgi_temp_path">временный файл</link>. |
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 <link id="scgi_max_temp_file_size"/> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
99 <link id="scgi_temp_file_write_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
100 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
101 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
102 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
103 Если буферизация выключена, то ответ синхронно передаётся клиенту сразу же |
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 nginx не пытается считать весь ответ SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
106 Максимальный размер данных, который nginx может принять от сервера |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
107 за один раз, задаётся директивой <link id="scgi_buffer_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
108 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
109 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
110 <para> |
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 значения “<literal>yes</literal>” или “<literal>no</literal>” в поле |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
113 <header>X-Accel-Buffering</header> заголовка ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
114 Эту возможность можно запретить с помощью директивы |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
115 <link id="scgi_ignore_headers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
116 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
117 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
118 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
121 <directive name="scgi_buffers"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
122 <syntax><value>число</value> <value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
123 <default>8 4k|8k</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
124 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
125 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
126 <context>location</context> |
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 Задаёт <value>число</value> и <value>размер</value> буферов |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
130 для одного соединения, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
131 в которые будет читаться ответ, получаемый от SCGI-сервера. |
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 В зависимости от платформы это или 4K, или 8K. |
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_busy_buffers_size"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
140 <syntax><value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
141 <default>8k|16k</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 При включённой <link id="scgi_buffering">буферизации</link> ответов |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
148 SCGI-сервера, ограничивает суммарный <value>размер</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
149 буферов, которые могут быть заняты для отправки ответа клиенту, пока |
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 Оставшиеся буферы тем временем могут использоваться для чтения ответа |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
152 и, при необходимости, буферизации части ответа во временный файл. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
153 По умолчанию <value>размер</value> ограничен двумя буферами, заданными |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
154 директивами <link id="scgi_buffer_size"/> и <link id="scgi_buffers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
155 </para> |
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> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
158 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
159 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
160 <directive name="scgi_cache"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
161 <syntax><value>зона</value> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
162 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
163 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
164 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
165 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
166 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
167 <para> |
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 Одна и та же зона может использоваться в нескольких местах. |
1382
94cac978bda3
Documented variables support in proxy_cache and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1379
diff
changeset
|
170 В значении параметра можно использовать переменные (1.7.9). |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
171 Параметр <literal>off</literal> запрещает кэширование, унаследованное |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
172 с предыдущего уровня конфигурации. |
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_bypass"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
179 <syntax><value>строка</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
180 <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 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
188 то ответ не берётся из кэша: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
189 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
190 scgi_cache_bypass $cookie_nocache $arg_nocache$arg_comment; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
191 scgi_cache_bypass $http_pragma $http_authorization; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
192 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
193 Можно использовать совместно с директивой <link id="scgi_no_cache"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
194 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
195 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
196 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
197 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
198 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
199 <directive name="scgi_cache_key"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
200 <syntax><value>строка</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
201 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
202 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
203 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
204 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
205 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
206 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
207 Задаёт ключ для кэширования, например, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
208 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
209 scgi_cache_key localhost:9000$request_uri; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
210 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
211 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
212 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
213 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
214 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
215 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
216 <directive name="scgi_cache_lock"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
217 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
218 <default>off</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 <appeared-in>1.1.12</appeared-in> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
223 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
224 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
225 Если включено, одновременно только одному запросу будет позволено |
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 <link id="scgi_cache_key"/>, передав запрос на SCGI-сервер. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
228 Остальные запросы этого же элемента будут либо ожидать |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
229 появления ответа в кэше, либо освобождения блокировки |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
230 этого элемента, в течение времени, заданного директивой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
231 <link id="scgi_cache_lock_timeout"/>. |
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 |
1379
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
237 <directive name="scgi_cache_lock_age"> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
238 <syntax><value>время</value></syntax> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
239 <default>5s</default> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
240 <context>http</context> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
241 <context>server</context> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
242 <context>location</context> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
243 <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
|
244 |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
245 <para> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
246 Если последний запрос, переданный на SCGI-сервер |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
247 для заполнения нового элемента кэша, |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
248 не завершился за указанное <value>время</value>, |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
249 на SCGI-сервер может быть передан ещё один запрос. |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
250 </para> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
251 |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
252 </directive> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
253 |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
254 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
255 <directive name="scgi_cache_lock_timeout"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
256 <syntax><value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
257 <default>5s</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
258 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
259 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
260 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
261 <appeared-in>1.1.12</appeared-in> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
262 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
263 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
264 Задаёт таймаут для <link id="scgi_cache_lock"/>. |
1379
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
265 По истечении указанного <value>времени</value> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
266 запрос будет передан на SCGI-сервер, |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
267 однако ответ не будет закэширован. |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
268 <note> |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
269 До версии 1.7.8 такой ответ мог быть закэширован. |
91f5c089f4ca
Documented fastcgi_cache_lock_age and look-alikes.
Ruslan Ermilov <ru@nginx.com>
parents:
1353
diff
changeset
|
270 </note> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
271 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
272 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
273 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
274 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
275 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
276 <directive name="scgi_cache_methods"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
277 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
278 <literal>GET</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
279 <literal>HEAD</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
280 <literal>POST</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
281 ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
282 <default>GET HEAD</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
283 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
284 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
285 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
286 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
287 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
288 Если метод запроса клиента указан в этой директиве, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
289 то ответ будет закэширован. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
290 Методы “<literal>GET</literal>” и “<literal>HEAD</literal>” всегда добавляются |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
291 в список, но тем не менее рекомендуется перечислять их явно. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
292 См. также директиву <link id="scgi_no_cache"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
293 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
294 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
295 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
296 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
297 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
298 <directive name="scgi_cache_min_uses"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
299 <syntax><value>число</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
300 <default>1</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
301 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
302 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
303 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
304 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
305 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
306 Задаёт <value>число</value> запросов, после которого ответ будет закэширован. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
307 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
308 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
309 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
312 <directive name="scgi_cache_path"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
313 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
314 <value>путь</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
315 [<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
|
316 [<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
|
317 <literal>keys_zone</literal>=<value>имя</value>:<value>размер</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
318 [<literal>inactive</literal>=<value>время</value>] |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
319 [<literal>max_size</literal>=<value>размер</value>] |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
320 [<literal>loader_files</literal>=<value>число</value>] |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
321 [<literal>loader_sleep</literal>=<value>время</value>] |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
322 [<literal>loader_threshold</literal>=<value>время</value>]</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
323 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
324 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
325 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
326 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
327 Задаёт путь и другие параметры кэша. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
328 Данные кэша хранятся в файлах. |
1190
dd4cfc6ce770
Corrected description of *_cache_path file names.
Ruslan Ermilov <ru@nginx.com>
parents:
1189
diff
changeset
|
329 Именем файла в кэше является результат функции MD5 |
dd4cfc6ce770
Corrected description of *_cache_path file names.
Ruslan Ermilov <ru@nginx.com>
parents:
1189
diff
changeset
|
330 от <link id="scgi_cache_key">ключа кэширования</link>. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
331 Параметр <literal>levels</literal> задаёт уровни иерархии кэша, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
332 например, при использовании |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
333 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
334 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
|
335 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
336 имена файлов в кэше будут такого вида: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
337 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
338 /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
|
339 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
340 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
341 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
342 <para> |
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 переименовывается. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
345 Начиная с версии 0.8.9, временные файлы и кэш |
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 Однако нужно учитывать, |
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 одной файловой системы файл копируется с одной файловой системы на другую. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
350 Поэтому лучше, если кэш будет находиться на той же файловой |
1384
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
351 системе, что и каталог с временными файлами. |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
352 Какой из каталогов будет использоваться для временных файлов |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
353 определяется параметром <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
|
354 Если параметр не задан или установлен в значение “<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
|
355 то будет использоваться каталог, задаваемый директивой |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
356 <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
|
357 Если параметр установлен в значение “<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
|
358 то временные файлы будут располагаться непосредственно в каталоге кэша. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
359 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
360 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
361 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
362 Кроме того, все активные ключи и информация о данных хранятся в зоне |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
363 разделяемой памяти, <value>имя</value> и <value>размер</value> которой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
364 задаются параметром <literal>keys_zone</literal>. |
1189
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
365 Зоны размером в 1 мегабайт достаточно для хранения около 8 тысяч ключей. |
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
366 </para> |
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
367 |
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
368 <para> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
369 Если к данным кэша не обращаются в течение времени, заданного параметром |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
370 <literal>inactive</literal>, то данные удаляются, независимо от их свежести. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
371 По умолчанию <literal>inactive</literal> равен 10 минутам. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
372 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
373 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
374 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
375 Специальный процесс “cache manager” следит за максимальным размером кэша, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
376 заданным параметром <literal>max_size</literal>, и при превышении |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
377 его размеров удаляет наименее востребованные данные. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
378 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
379 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
380 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
381 Через минуту после старта активируется специальный процесс “cache loader”, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
382 который загружает в зону кэша информацию о ранее закэшированных данных, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
383 хранящихся на файловой системе. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
384 Загрузка происходит итерациями. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
385 За одну итерацию загружается не более <literal>loader_files</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
386 элементов (по умолчанию 100). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
387 Кроме того, время работы одной итерации ограничено параметром |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
388 <literal>loader_threshold</literal> (по умолчанию 200 миллисекунд). |
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 <literal>loader_sleep</literal> (по умолчанию 50 миллисекунд). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
391 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
392 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
393 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
394 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
395 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
396 <directive name="scgi_cache_purge"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
397 <syntax>строка ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
398 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
399 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
400 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
401 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
402 <appeared-in>1.5.7</appeared-in> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
403 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
404 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
405 Задаёт условия, при которых запрос будет считаться запросом |
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 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
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 <link id="scgi_cache_key">ключом кэширования</link> удаляется. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
410 В результате успешной операции возвращается ответ с кодом |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
411 <http-status code="204" text="No Content"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
412 </para> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
415 Если <link id="scgi_cache_key">ключ кэширования</link> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
416 запроса на очистку заканчивается |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
417 звёздочкой (“<literal>*</literal>”), то все записи в кэше, соответствующие |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
418 этой маске, будут удалены из кэша. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
419 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
420 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
421 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
422 Пример конфигурации: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
423 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
424 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
|
425 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
426 map $request_method $purge_method { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
427 PURGE 1; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
428 default 0; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
429 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
430 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
431 server { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
432 ... |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
433 location / { |
1185
f9c8336fe43c
Aligned configuration examples with fastcgi/scgi_cache_purge.
Ruslan Ermilov <ru@nginx.com>
parents:
1184
diff
changeset
|
434 scgi_pass http://backend; |
f9c8336fe43c
Aligned configuration examples with fastcgi/scgi_cache_purge.
Ruslan Ermilov <ru@nginx.com>
parents:
1184
diff
changeset
|
435 scgi_cache cache_zone; |
f9c8336fe43c
Aligned configuration examples with fastcgi/scgi_cache_purge.
Ruslan Ermilov <ru@nginx.com>
parents:
1184
diff
changeset
|
436 scgi_cache_key $uri; |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
437 scgi_cache_purge $purge_method; |
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 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
440 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
441 <note> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
442 Функциональность доступна как часть |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
443 <commercial_version>коммерческой подписки</commercial_version>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
444 </note> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
445 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
446 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
447 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
448 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
449 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
450 <directive name="scgi_cache_revalidate"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
451 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
452 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
453 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
454 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
455 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
456 <appeared-in>1.5.7</appeared-in> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
459 Разрешает ревалидацию просроченных элементов кэша при помощи |
1246
5be7716a5684
Documented If-None-Match in proxy_cache_revalidate and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1190
diff
changeset
|
460 условных запросов с полями заголовка |
5be7716a5684
Documented If-None-Match in proxy_cache_revalidate and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1190
diff
changeset
|
461 <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
|
462 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
463 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
464 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
465 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
466 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
467 <directive name="scgi_cache_use_stale"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
468 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
469 <literal>error</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
470 <literal>timeout</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
471 <literal>invalid_header</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
472 <literal>updating</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
473 <literal>http_500</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
474 <literal>http_503</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
475 <literal>http_403</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
476 <literal>http_404</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
477 <literal>off</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
478 ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
479 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
480 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
481 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
482 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
483 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
484 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
485 Определяет, в каких случаях можно использовать устаревший закэшированный ответ, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
486 если при работе с SCGI-сервером возникла ошибка. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
487 Параметры директивы совпадают с параметрами |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
488 директивы <link id="scgi_next_upstream"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
489 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
490 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
491 <para> |
1542
a13a99cf46ea
Better documented "*_cache_use_stale error".
Ruslan Ermilov <ru@nginx.com>
parents:
1524
diff
changeset
|
492 Параметр <literal>error</literal> также позволяет использовать |
a13a99cf46ea
Better documented "*_cache_use_stale error".
Ruslan Ermilov <ru@nginx.com>
parents:
1524
diff
changeset
|
493 устаревший закэшированный ответ при невозможности выбора |
a13a99cf46ea
Better documented "*_cache_use_stale error".
Ruslan Ermilov <ru@nginx.com>
parents:
1524
diff
changeset
|
494 SCGI-сервера для обработки запроса. |
a13a99cf46ea
Better documented "*_cache_use_stale error".
Ruslan Ermilov <ru@nginx.com>
parents:
1524
diff
changeset
|
495 </para> |
a13a99cf46ea
Better documented "*_cache_use_stale error".
Ruslan Ermilov <ru@nginx.com>
parents:
1524
diff
changeset
|
496 |
a13a99cf46ea
Better documented "*_cache_use_stale error".
Ruslan Ermilov <ru@nginx.com>
parents:
1524
diff
changeset
|
497 <para> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
498 Кроме того, дополнительный параметр <literal>updating</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
499 разрешает использовать устаревший закэшированный ответ, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
500 если на данный момент он уже обновляется. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
501 Это позволяет минимизировать число обращений к SCGI-серверам |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
502 при обновлении закэшированных данных. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
503 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
504 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
505 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
506 Чтобы минимизировать число обращений к SCGI-серверам при |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
507 заполнении нового элемента кэша, можно воспользоваться директивой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
508 <link id="scgi_cache_lock"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
509 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
510 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
511 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
512 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
513 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
514 <directive name="scgi_cache_valid"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
515 <syntax>[<value>код</value> ...] <value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
516 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
517 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
518 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
519 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
520 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
521 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
522 Задаёт время кэширования для разных кодов ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
523 Например, директивы |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
524 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
525 scgi_cache_valid 200 302 10m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
526 scgi_cache_valid 404 1m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
527 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
528 задают время кэширования 10 минут для ответов с кодами 200 и 302 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
529 и 1 минуту для ответов с кодом 404. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
530 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
531 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
532 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
533 Если указано только <value>время</value> кэширования, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
534 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
535 scgi_cache_valid 5m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
536 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
537 то кэшируются только ответы 200, 301 и 302. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
538 </para> |
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 <para> |
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 <literal>any</literal>: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
543 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
544 scgi_cache_valid 200 302 10m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
545 scgi_cache_valid 301 1h; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
546 scgi_cache_valid any 1m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
547 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
548 </para> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
551 Параметры кэширования могут также быть заданы непосредственно |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
552 в заголовке ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
553 Такой способ приоритетнее, чем задание времени кэширования с помощью директивы. |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
554 <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
|
555 |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
556 <listitem> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
557 Поле заголовка <header>X-Accel-Expires</header> задаёт время кэширования |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
558 ответа в секундах. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
559 Значение 0 запрещает кэшировать ответ. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
560 Если значение начинается с префикса <literal>@</literal>, оно задаёт абсолютное |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
561 время в секундах с начала эпохи, до которого ответ может быть закэширован. |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
562 </listitem> |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
563 |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
564 <listitem> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
565 Если в заголовке нет поля <header>X-Accel-Expires</header>, |
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 <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
|
568 </listitem> |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
569 |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
570 <listitem> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
571 Ответ, в заголовке которого есть поле <header>Set-Cookie</header>, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
572 не будет кэшироваться. |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
573 </listitem> |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
574 |
1353
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
575 <listitem> |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
576 Ответ, в заголовке которого есть поле <header>Vary</header> |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
577 со специальным значением “<literal>*</literal>”, |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
578 не будет кэшироваться (1.7.7). |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
579 Ответ, в заголовке которого есть поле <header>Vary</header> |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
580 с другим значением, будет закэширован |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
581 с учётом соответствующих полей заголовка запроса (1.7.7). |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
582 </listitem> |
25db29c8875e
Documented how the "Vary" response header field affects caching.
Ruslan Ermilov <ru@nginx.com>
parents:
1352
diff
changeset
|
583 |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
584 </list> |
1183
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 при помощи директивы <link id="scgi_ignore_headers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
587 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
588 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
589 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
590 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
591 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
592 <directive name="scgi_connect_timeout"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
593 <syntax><value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
594 <default>60s</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
595 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
596 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
597 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
598 |
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 Задаёт таймаут для установления соединения с SCGI-сервером. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
601 Необходимо иметь в виду, что этот таймаут обычно не может превышать 75 секунд. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
602 </para> |
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> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
605 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
606 |
1337
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
607 <directive name="scgi_force_ranges"> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
608 <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
|
609 <default>off</default> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
610 <context>http</context> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
611 <context>server</context> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
612 <context>location</context> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
613 <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
|
614 |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
615 <para> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
616 Включает поддержку диапазонов запрашиваемых байт (byte-range) |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
617 для кэшированных и некэшированных ответов SCGI-сервера |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
618 вне зависимости от наличия поля <header>Accept-Ranges</header> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
619 в заголовках этих ответов. |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
620 </para> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
621 |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
622 </directive> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
623 |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
624 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
625 <directive name="scgi_hide_header"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
626 <syntax><value>поле</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
627 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
628 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
629 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
630 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
631 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
632 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
633 По умолчанию |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
634 nginx не передаёт клиенту поля заголовка <header>Status</header> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
635 <header>X-Accel-...</header> из ответа SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
636 Директива <literal>scgi_hide_header</literal> задаёт дополнительные поля, |
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 Если же передачу полей нужно разрешить, можно воспользоваться |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
639 директивой <link id="scgi_pass_header"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
640 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
641 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
642 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
643 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
644 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
645 <directive name="scgi_ignore_client_abort"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
646 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
647 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
648 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
649 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
650 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
651 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
652 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
653 Определяет, закрывать ли соединение с SCGI-сервером |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
654 в случае, если клиент закрыл соединение, не дождавшись ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
655 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
656 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
657 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
658 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
659 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
660 <directive name="scgi_ignore_headers"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
661 <syntax><value>поле</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
662 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
663 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
664 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
665 <context>location</context> |
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 В директиве можно указать поля <header>X-Accel-Redirect</header>, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
670 <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
|
671 <header>X-Accel-Buffering</header> (1.1.6), |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
672 <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
|
673 <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
|
674 и <header>Vary</header> (1.7.7). |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
675 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
676 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
677 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
678 Если не запрещено, обработка этих полей заголовка заключается в следующем: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
679 <list type="bullet" compact="no"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
680 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
681 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
682 <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
|
683 <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
|
684 и <header>Vary</header> |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
685 задают параметры <link id="scgi_cache_valid">кэширования</link> ответа; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
686 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
687 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
688 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
689 <header>X-Accel-Redirect</header> производит |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
690 <link doc="ngx_http_core_module.xml" id="internal">внутреннее |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
691 перенаправление</link> на указанный URI; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
692 </listitem> |
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 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
695 <header>X-Accel-Limit-Rate</header> задаёт |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
696 <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
|
697 скорости</link> передачи ответа клиенту; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
698 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
699 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
700 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
701 <header>X-Accel-Buffering</header> включает или выключает |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
702 <link id="scgi_buffering">буферизацию</link> ответа; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
703 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
704 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
705 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
706 <header>X-Accel-Charset</header> задаёт желаемую |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
707 <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
|
708 ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
709 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
710 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
711 </list> |
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 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
715 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
716 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
717 <directive name="scgi_intercept_errors"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
718 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
719 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
720 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
721 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
722 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
723 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
724 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
725 Определяет, передавать ли клиенту ответы SCGI-сервера с кодом |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
726 больше либо равным 300, или же перенаправлять их на обработку nginx’у с помощью |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
727 директивы <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
|
728 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
729 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
730 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
731 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
732 |
1342
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
733 <directive name="scgi_limit_rate"> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
734 <syntax><value>скорость</value></syntax> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
735 <default>0</default> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
736 <context>http</context> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
737 <context>server</context> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
738 <context>location</context> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
739 <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
|
740 |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
741 <para> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
742 Ограничивает скорость чтения ответа от SCGI-сервера. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
743 <value>Скорость</value> задаётся в байтах в секунду. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
744 Значение 0 отключает ограничение скорости. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
745 Ограничение устанавливается на запрос, |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
746 поэтому, если nginx одновременно |
1343
1bdde28e359b
Fixed fallouts from the previous change.
Ruslan Ermilov <ru@nginx.com>
parents:
1342
diff
changeset
|
747 откроет два соединения к SCGI-серверу, |
1bdde28e359b
Fixed fallouts from the previous change.
Ruslan Ermilov <ru@nginx.com>
parents:
1342
diff
changeset
|
748 суммарная скорость будет вдвое выше заданного ограничения. |
1342
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
749 Ограничение работает только в случае, если включена |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
750 <link id="scgi_buffering">буферизация</link> ответов SCGI-сервера. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
751 </para> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
752 |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
753 </directive> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
754 |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
755 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
756 <directive name="scgi_max_temp_file_size"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
757 <syntax><value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
758 <default>1024m</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
759 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
760 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
761 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
762 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
763 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
764 Если включена <link id="scgi_buffering">буферизация</link> ответов |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
765 SCGI-сервера, и ответ не вмещается целиком в буферы, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
766 заданные директивами <link id="scgi_buffer_size"/> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
767 <link id="scgi_buffers"/>, часть ответа может быть записана во временный файл. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
768 Эта директива задаёт максимальный <value>размер</value> временного файла. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
769 Размер данных, сбрасываемых во временный файл за один раз, задаётся |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
770 директивой <link id="scgi_temp_file_write_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
771 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
772 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
773 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
774 Значение 0 отключает возможность буферизации ответов во временные файлы. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
775 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
776 |
1352
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
777 <para> |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
778 <note> |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
779 Данное ограничение не распространяется на ответы, |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
780 которые будут <link id="scgi_cache">закэшированы</link> |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
781 или <link id="scgi_store">сохранены</link> на диске. |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
782 </note> |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
783 </para> |
dbb618f60a54
Elaborate on writing proxied responses to files.
Ruslan Ermilov <ru@nginx.com>
parents:
1349
diff
changeset
|
784 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
785 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
786 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
787 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
788 <directive name="scgi_next_upstream"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
789 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
790 <literal>error</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
791 <literal>timeout</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
792 <literal>invalid_header</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
793 <literal>http_500</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
794 <literal>http_503</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
795 <literal>http_403</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
796 <literal>http_404</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
797 <literal>off</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
798 ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
799 <default>error timeout</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
800 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
801 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
802 <context>location</context> |
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 <para> |
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 <list type="tag"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
807 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
808 <tag-name><literal>error</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
809 <tag-desc>произошла ошибка соединения с сервером, передачи ему запроса или |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
810 чтения заголовка ответа сервера;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
811 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
812 <tag-name><literal>timeout</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
813 <tag-desc>произошёл таймаут во время соединения с сервером, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
814 передачи ему запроса или чтения заголовка ответа сервера;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
815 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
816 <tag-name><literal>invalid_header</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
817 <tag-desc>сервер вернул пустой или неверный ответ;</tag-desc> |
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 <tag-name><literal>http_500</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
820 <tag-desc>сервер вернул ответ с кодом 500;</tag-desc> |
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 <tag-name><literal>http_503</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
823 <tag-desc>сервер вернул ответ с кодом 503;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
824 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
825 <tag-name><literal>http_403</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
826 <tag-desc>сервер вернул ответ с кодом 403;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
827 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
828 <tag-name><literal>http_404</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
829 <tag-desc>сервер вернул ответ с кодом 404;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
830 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
831 <tag-name><literal>off</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
832 <tag-desc>запрещает передачу запроса следующему серверу.</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
833 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
834 </list> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
835 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
836 |
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 только при условии, что клиенту ещё ничего не передавалось. |
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 то исправить это уже невозможно. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
842 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
843 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
844 <para> |
1289
57fc39924d42
Proxy/memcached/fastcgi/scgi/uwsgi: updated link in _next_upstream directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1246
diff
changeset
|
845 Директива также определяет, что считается |
57fc39924d42
Proxy/memcached/fastcgi/scgi/uwsgi: updated link in _next_upstream directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1246
diff
changeset
|
846 <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
|
847 попыткой</link> работы с сервером. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
848 Случаи <literal>error</literal>, <literal>timeout</literal> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
849 <literal>invalid_header</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
850 всегда считаются неудачными попытками, даже если они не указаны в директиве. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
851 Случаи <literal>http_500</literal> и <literal>http_503</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
852 считаются неудачными попытками, только если они указаны в директиве. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
853 Случаи <literal>http_403</literal> и <literal>http_404</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
854 никогда не считаются неудачными попытками. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
855 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
856 |
1290
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
857 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
858 Передача запроса следующему серверу может быть ограничена по |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
859 <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
|
860 и по <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
|
861 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
862 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
863 </directive> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
864 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
865 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
866 <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
|
867 <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
|
868 <default>0</default> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
869 <context>http</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
870 <context>server</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
871 <context>location</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
872 <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
|
873 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
874 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
875 Ограничивает время, в течение которого возможна передача запроса |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
876 <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
|
877 Значение <literal>0</literal> отключает это ограничение. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
878 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
879 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
880 </directive> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
881 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
882 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
883 <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
|
884 <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
|
885 <default>0</default> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
886 <context>http</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
887 <context>server</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
888 <context>location</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
889 <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
|
890 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
891 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
892 Ограничивает число допустимых попыток для передачи запроса |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
893 <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
|
894 Значение <literal>0</literal> отключает это ограничение. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
895 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
896 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
897 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
898 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
899 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
900 <directive name="scgi_no_cache"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
901 <syntax><value>строка</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
902 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
903 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
904 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
905 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
906 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
907 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
908 Задаёт условия, при которых ответ не будет сохраняться в кэш. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
909 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
910 то ответ не будет сохранён: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
911 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
912 scgi_no_cache $cookie_nocache $arg_nocache$arg_comment; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
913 scgi_no_cache $http_pragma $http_authorization; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
914 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
915 Можно использовать совместно с директивой <link id="scgi_cache_bypass"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
916 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
917 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
918 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
919 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
920 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
921 <directive name="scgi_param"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
922 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
923 <value>параметр</value> <value>значение</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
924 [<literal>if_not_empty</literal>]</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
925 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
926 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
927 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
928 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
929 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
930 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
931 Задаёт <value>параметр</value>, который будет передаваться SCGI-серверу. |
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 Директивы наследуются с предыдущего уровня при условии, что на данном |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
934 уровне не описаны свои директивы <literal>scgi_param</literal>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
935 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
936 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
937 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
938 Стандартные |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
939 <link url="http://tools.ietf.org/html/rfc3875#section-4.1">переменные |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
940 окружения CGI</link> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
941 должны передаваться как заголовки SCGI, см. файл <path>scgi_params</path> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
942 из дистрибутива: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
943 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
944 location / { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
945 include scgi_params; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
946 ... |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
947 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
948 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
949 </para> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
952 Если директива указана с <literal>if_not_empty</literal> (1.1.11), |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
953 то такой параметр с пустым значением передаваться на сервер не будет: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
954 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
955 scgi_param HTTPS $https if_not_empty; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
956 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
957 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
958 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
959 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
960 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
961 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
962 <directive name="scgi_pass"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
963 <syntax><value>адрес</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
964 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
965 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
966 <context>if в location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
967 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
968 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
969 Задаёт адрес SCGI-сервера. |
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 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
972 scgi_pass localhost:9000; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
973 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
974 или в виде пути UNIX-сокета: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
975 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
976 scgi_pass unix:/tmp/scgi.socket; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
977 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
978 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
979 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
980 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
981 Если доменному имени соответствует несколько адресов, то все они будут |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
982 использоваться по очереди (round-robin). |
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 <link doc="ngx_http_upstream_module.xml">группой серверов</link>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
985 </para> |
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 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
988 |
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 <directive name="scgi_pass_header"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
991 <syntax><value>поле</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
992 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
993 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
994 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
995 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
996 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
997 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
998 Разрешает передавать от SCGI-сервера клиенту |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
999 <link id="scgi_hide_header">запрещённые для передачи</link> поля заголовка. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1000 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1001 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1002 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1003 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1004 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1005 <directive name="scgi_pass_request_body"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1006 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1007 <default>on</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1008 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1009 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1010 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1011 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1012 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1013 Позволяет запретить передачу исходного тела запроса |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1014 на SCGI-сервер. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1015 См. также директиву <link id="scgi_pass_request_headers"/>. |
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 </directive> |
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 <directive name="scgi_pass_request_headers"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1022 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1023 <default>on</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1024 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1025 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1026 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1027 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1028 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1029 Позволяет запретить передачу полей заголовка исходного запроса на |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1030 SCGI-сервер. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1031 См. также директивы <link id="scgi_pass_request_body"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1032 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1033 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1034 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1035 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1036 |
1524
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1037 <directive name="scgi_read_timeout"> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1038 <syntax><value>время</value></syntax> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1039 <default>60s</default> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1040 <context>http</context> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1041 <context>server</context> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1042 <context>location</context> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1043 |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1044 <para> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1045 Задаёт таймаут при чтении ответа SCGI-сервера. |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1046 Таймаут устанавливается не на всю передачу ответа, |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1047 а только между двумя операциями чтения. |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1048 Если по истечении этого времени SCGI-сервер ничего не передаст, |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1049 соединение закрывается. |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1050 </para> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1051 |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1052 </directive> |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1053 |
323b0d071166
Relocated proxy_read_timeout and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1443
diff
changeset
|
1054 |
1437
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1055 <directive name="scgi_request_buffering"> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1056 <syntax><value>on</value> | <value>off</value></syntax> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1057 <default>on</default> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1058 <context>http</context> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1059 <context>server</context> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1060 <context>location</context> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1061 <appeared-in>1.7.11</appeared-in> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1062 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1063 <para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1064 Разрешает или запрещает использовать буферизацию тела запроса клиента. |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1065 </para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1066 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1067 <para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1068 Если буферизация включена, то тело запроса полностью |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1069 <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
|
1070 от клиента перед отправкой запроса на SCGI-сервер. |
1437
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1071 </para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1072 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1073 <para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1074 Если буферизация выключена, то тело запроса отправляется |
1440
657885fd2b96
Corrected description of proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1437
diff
changeset
|
1075 на SCGI-сервер сразу же по мере его поступления. |
657885fd2b96
Corrected description of proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1437
diff
changeset
|
1076 В этом случае запрос не может быть передан |
657885fd2b96
Corrected description of proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1437
diff
changeset
|
1077 <link id="scgi_next_upstream">следующему серверу</link>, |
657885fd2b96
Corrected description of proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1437
diff
changeset
|
1078 если nginx уже начал отправку тела запроса. |
1437
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1079 </para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1080 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1081 <para> |
1440
657885fd2b96
Corrected description of proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1437
diff
changeset
|
1082 Если для отправки тела исходного запроса используется HTTP/1.1 |
1437
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1083 и передача данных частями (chunked transfer encoding), |
1443
a55553729d63
Unified text of scgi and uwsgi request buffering with proxy.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1440
diff
changeset
|
1084 то тело запроса буферизуется независимо от значения директивы. |
1437
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1085 </para> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1086 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1087 </directive> |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1088 |
8e7995bb8c6b
Documented proxy_request_buffering and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1384
diff
changeset
|
1089 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1090 <directive name="scgi_send_timeout"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1091 <syntax><value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1092 <default>60s</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1093 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1094 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1095 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1096 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1097 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1098 Задаёт таймаут при передаче запроса SCGI-серверу. |
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 Если по истечении этого времени SCGI-сервер не примет новых данных, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1102 соединение закрывается. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1103 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1104 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1105 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1106 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1107 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1108 <directive name="scgi_store"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1109 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1110 <literal>on</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1111 <literal>off</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1112 <value>строка</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1113 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1114 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1115 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1116 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1117 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1118 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1119 Разрешает сохранение на диск файлов. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1120 Параметр <literal>on</literal> сохраняет файлы в соответствии с путями, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1121 указанными в директивах |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1122 <link doc="ngx_http_core_module.xml" id="alias"/> или |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1123 <link doc="ngx_http_core_module.xml" id="root"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1124 Параметр <literal>off</literal> запрещает сохранение файлов. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1125 Кроме того, имя файла можно задать явно с помощью строки с переменными: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1126 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1127 scgi_store /data/www$original_uri; |
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 Время изменения файлов выставляется согласно полученному полю |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1133 <header>Last-Modified</header> в заголовке ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1134 Ответ сначала записывается во временный файл, а потом этот файл |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1135 переименовывается. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1136 Начиная с версии 0.8.9, временный файл и постоянное место хранения ответа |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1137 могут располагаться на разных файловых системах. |
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 что в этом случае вместо дешёвой операции переименовывания в пределах |
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 системе, что и каталог с временными файлами, задаваемый директивой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1143 <link id="scgi_temp_path"/> для данного location. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1144 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1145 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1146 <para> |
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 неизменяемых файлов, например, так: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1149 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1150 location /images/ { |
1184
55857cbf562d
Fixed alignment issues after mechanical conversion from fastcgi.
Ruslan Ermilov <ru@nginx.com>
parents:
1183
diff
changeset
|
1151 root /data/www; |
55857cbf562d
Fixed alignment issues after mechanical conversion from fastcgi.
Ruslan Ermilov <ru@nginx.com>
parents:
1183
diff
changeset
|
1152 error_page 404 = /fetch$uri; |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1153 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1154 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1155 location /fetch/ { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1156 internal; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1157 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1158 scgi_pass backend:9000; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1159 ... |
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 scgi_store on; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1162 scgi_store_access user:rw group:rw all:r; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1163 scgi_temp_path /data/temp; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1164 |
1184
55857cbf562d
Fixed alignment issues after mechanical conversion from fastcgi.
Ruslan Ermilov <ru@nginx.com>
parents:
1183
diff
changeset
|
1165 alias /data/www/; |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1166 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1167 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1168 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1169 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1170 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1171 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1172 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1173 <directive name="scgi_store_access"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1174 <syntax><value>пользователи</value>:<value>права</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1175 <default>user:rw</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1176 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1177 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1178 <context>location</context> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1181 Задаёт права доступа для создаваемых файлов и каталогов, например, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1182 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1183 scgi_store_access user:rw group:rw all:r; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1184 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1185 </para> |
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 Если заданы какие-либо права для <literal>group</literal> или |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1189 <literal>all</literal>, то права для <literal>user</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1190 указывать необязательно: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1191 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1192 scgi_store_access group:rw all:r; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1193 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1194 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1195 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1196 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1197 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1198 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1199 <directive name="scgi_temp_file_write_size"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1200 <syntax><value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1201 <default>8k|16k</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1202 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1203 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1204 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1205 |
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 Ограничивает <value>размер</value> данных, сбрасываемых во временный файл |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1208 за один раз, при включённой буферизации ответов SCGI-сервера |
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 По умолчанию <value>размер</value> ограничен двумя буферами, заданными |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1211 директивами <link id="scgi_buffer_size"/> и <link id="scgi_buffers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1212 Максимальный размер временного файла задаётся директивой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1213 <link id="scgi_max_temp_file_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1214 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1215 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1216 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1219 <directive name="scgi_temp_path"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1220 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1221 <value>путь</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1222 [<value>уровень1</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1223 [<value>уровень2</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1224 [<value>уровень3</value>]]]</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1225 <default>scgi_temp</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1226 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1227 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1228 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1229 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1230 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1231 Задаёт имя каталога для хранения временных файлов с данными, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1232 полученными от SCGI-серверов. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1233 В каталоге может использоваться иерархия подкаталогов до трёх уровней. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1234 Например, при такой конфигурации |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1235 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1236 scgi_temp_path /spool/nginx/scgi_temp 1 2; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1237 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1238 временный файл будет следующего вида: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1239 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1240 /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
|
1241 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1242 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1243 |
1384
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
1244 <para> |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
1245 См. также параметр <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
|
1246 <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
|
1247 </para> |
66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1382
diff
changeset
|
1248 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1249 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1250 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1251 </section> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1252 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1253 </module> |