Mercurial > hg > nginx-site
annotate xml/ru/docs/http/ngx_http_scgi_module.xml @ 1330:86e682c3f3a9
Index: link to Example Configuration removed from Russian index page.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 07 Oct 2014 11:48:52 +0400 |
parents | f5cc9f2aef9a |
children | 91a064bdb4f9 |
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" |
1290
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
13 rev="6"> |
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 В этой части ответа находится, как правило, небольшой заголовок ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
72 По умолчанию размер буфера равен размеру одного буфера в директиве |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
73 <link id="scgi_buffers"/>, однако его можно сделать меньше. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
74 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
75 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
76 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
77 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
78 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
79 <directive name="scgi_buffering"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
80 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
81 <default>on</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
82 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
83 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
84 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
85 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
86 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
87 Разрешает или запрещает использовать буферизацию ответов SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
88 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
89 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
90 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
91 Если буферизация включена, то nginx принимает ответ SCGI-сервера |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
92 как можно быстрее, сохраняя его в буферы, заданные директивами |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
93 <link id="scgi_buffer_size"/> и <link id="scgi_buffers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
94 Если ответ не вмещается целиком в память, то его часть может быть записана |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
95 на диск во <link id="scgi_temp_path">временный файл</link>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
96 Запись во временные файлы контролируется директивами |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
97 <link id="scgi_max_temp_file_size"/> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
98 <link id="scgi_temp_file_write_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
99 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
100 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
101 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
102 Если буферизация выключена, то ответ синхронно передаётся клиенту сразу же |
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 nginx не пытается считать весь ответ SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
105 Максимальный размер данных, который nginx может принять от сервера |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
106 за один раз, задаётся директивой <link id="scgi_buffer_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
107 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
108 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
109 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
110 Буферизация может быть также включена или выключена путём передачи |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
111 значения “<literal>yes</literal>” или “<literal>no</literal>” в поле |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
112 <header>X-Accel-Buffering</header> заголовка ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
113 Эту возможность можно запретить с помощью директивы |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
114 <link id="scgi_ignore_headers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
115 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
116 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
117 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
118 |
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 <directive name="scgi_buffers"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
121 <syntax><value>число</value> <value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
122 <default>8 4k|8k</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
123 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
124 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
125 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
126 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
127 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
128 Задаёт <value>число</value> и <value>размер</value> буферов |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
129 для одного соединения, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
130 в которые будет читаться ответ, получаемый от SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
131 По умолчанию размер одного буфера равен размеру страницы. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
132 В зависимости от платформы это или 4K, или 8K. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
133 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
134 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
135 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
136 |
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 <directive name="scgi_busy_buffers_size"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
139 <syntax><value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
140 <default>8k|16k</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
141 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
142 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
143 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
144 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
145 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
146 При включённой <link id="scgi_buffering">буферизации</link> ответов |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
147 SCGI-сервера, ограничивает суммарный <value>размер</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
148 буферов, которые могут быть заняты для отправки ответа клиенту, пока |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
149 ответ ещё не прочитан целиком. |
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 По умолчанию <value>размер</value> ограничен двумя буферами, заданными |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
153 директивами <link id="scgi_buffer_size"/> и <link id="scgi_buffers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
154 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
155 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
156 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
157 |
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 <directive name="scgi_cache"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
160 <syntax><value>зона</value> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
161 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
162 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
163 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
164 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
165 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
166 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
167 Задаёт зону разделяемой памяти, используемой для кэширования. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
168 Одна и та же зона может использоваться в нескольких местах. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
169 Параметр <literal>off</literal> запрещает кэширование, унаследованное |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
170 с предыдущего уровня конфигурации. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
171 </para> |
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 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
176 <directive name="scgi_cache_bypass"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
177 <syntax><value>строка</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
178 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
179 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
180 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
181 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
182 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
183 <para> |
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 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
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 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
188 scgi_cache_bypass $cookie_nocache $arg_nocache$arg_comment; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
189 scgi_cache_bypass $http_pragma $http_authorization; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
190 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
191 Можно использовать совместно с директивой <link id="scgi_no_cache"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
192 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
193 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
194 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
197 <directive name="scgi_cache_key"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
198 <syntax><value>строка</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
199 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
200 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
201 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
202 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
203 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
204 <para> |
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 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
207 scgi_cache_key localhost:9000$request_uri; |
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 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
210 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
211 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
214 <directive name="scgi_cache_lock"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
215 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
216 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
217 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
218 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
219 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
220 <appeared-in>1.1.12</appeared-in> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
221 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
222 <para> |
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 заполнить новый элемент кэша, идентифицируемый согласно директиве |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
225 <link id="scgi_cache_key"/>, передав запрос на SCGI-сервер. |
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 появления ответа в кэше, либо освобождения блокировки |
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 <link id="scgi_cache_lock_timeout"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
230 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
231 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
232 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
235 <directive name="scgi_cache_lock_timeout"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
236 <syntax><value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
237 <default>5s</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
238 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
239 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
240 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
241 <appeared-in>1.1.12</appeared-in> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
242 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
243 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
244 Задаёт таймаут для <link id="scgi_cache_lock"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
245 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
246 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
247 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
248 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
249 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
250 <directive name="scgi_cache_methods"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
251 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
252 <literal>GET</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
253 <literal>HEAD</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
254 <literal>POST</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
255 ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
256 <default>GET HEAD</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
257 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
258 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
259 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
260 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
261 <para> |
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 то ответ будет закэширован. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
264 Методы “<literal>GET</literal>” и “<literal>HEAD</literal>” всегда добавляются |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
265 в список, но тем не менее рекомендуется перечислять их явно. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
266 См. также директиву <link id="scgi_no_cache"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
267 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
268 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
269 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
270 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
271 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
272 <directive name="scgi_cache_min_uses"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
273 <syntax><value>число</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
274 <default>1</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
275 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
276 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
277 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
278 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
279 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
280 Задаёт <value>число</value> запросов, после которого ответ будет закэширован. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
281 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
282 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
283 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
284 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
285 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
286 <directive name="scgi_cache_path"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
287 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
288 <value>путь</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
289 [<literal>levels</literal>=<value>уровни</value>] |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
290 <literal>keys_zone</literal>=<value>имя</value>:<value>размер</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
291 [<literal>inactive</literal>=<value>время</value>] |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
292 [<literal>max_size</literal>=<value>размер</value>] |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
293 [<literal>loader_files</literal>=<value>число</value>] |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
294 [<literal>loader_sleep</literal>=<value>время</value>] |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
295 [<literal>loader_threshold</literal>=<value>время</value>]</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
296 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
297 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
298 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
299 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
300 Задаёт путь и другие параметры кэша. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
301 Данные кэша хранятся в файлах. |
1190
dd4cfc6ce770
Corrected description of *_cache_path file names.
Ruslan Ermilov <ru@nginx.com>
parents:
1189
diff
changeset
|
302 Именем файла в кэше является результат функции MD5 |
dd4cfc6ce770
Corrected description of *_cache_path file names.
Ruslan Ermilov <ru@nginx.com>
parents:
1189
diff
changeset
|
303 от <link id="scgi_cache_key">ключа кэширования</link>. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
304 Параметр <literal>levels</literal> задаёт уровни иерархии кэша, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
305 например, при использовании |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
306 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
307 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
|
308 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
309 имена файлов в кэше будут такого вида: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
310 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
311 /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
|
312 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
313 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
314 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
315 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
316 Кэшируемый ответ сначала записывается во временный файл, а потом этот файл |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
317 переименовывается. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
318 Начиная с версии 0.8.9, временные файлы и кэш |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
319 могут располагаться на разных файловых системах. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
320 Однако нужно учитывать, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
321 что в этом случае вместо дешёвой операции переименовывания в пределах |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
322 одной файловой системы файл копируется с одной файловой системы на другую. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
323 Поэтому лучше, если кэш будет находиться на той же файловой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
324 системе, что и каталог с временными файлами, задаваемый директивой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
325 <link id="scgi_temp_path"/> для данного location. |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
329 Кроме того, все активные ключи и информация о данных хранятся в зоне |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
330 разделяемой памяти, <value>имя</value> и <value>размер</value> которой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
331 задаются параметром <literal>keys_zone</literal>. |
1189
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
332 Зоны размером в 1 мегабайт достаточно для хранения около 8 тысяч ключей. |
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
333 </para> |
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
334 |
f25d00109de0
Documented cache keys_zone memory estimates.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1185
diff
changeset
|
335 <para> |
1183
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 <literal>inactive</literal>, то данные удаляются, независимо от их свежести. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
338 По умолчанию <literal>inactive</literal> равен 10 минутам. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
339 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
340 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
341 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
342 Специальный процесс “cache manager” следит за максимальным размером кэша, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
343 заданным параметром <literal>max_size</literal>, и при превышении |
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 </para> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
348 Через минуту после старта активируется специальный процесс “cache loader”, |
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 хранящихся на файловой системе. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
351 Загрузка происходит итерациями. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
352 За одну итерацию загружается не более <literal>loader_files</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
353 элементов (по умолчанию 100). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
354 Кроме того, время работы одной итерации ограничено параметром |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
355 <literal>loader_threshold</literal> (по умолчанию 200 миллисекунд). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
356 Между итерациями делается пауза на время, заданное параметром |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
357 <literal>loader_sleep</literal> (по умолчанию 50 миллисекунд). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
358 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
359 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
360 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
361 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
362 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
363 <directive name="scgi_cache_purge"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
364 <syntax>строка ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
365 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
366 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
367 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
368 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
369 <appeared-in>1.5.7</appeared-in> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
370 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
371 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
372 Задаёт условия, при которых запрос будет считаться запросом |
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 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
375 то запись в кэше с соответствующим |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
376 <link id="scgi_cache_key">ключом кэширования</link> удаляется. |
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 <http-status code="204" text="No Content"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
379 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
380 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
381 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
382 Если <link id="scgi_cache_key">ключ кэширования</link> |
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 звёздочкой (“<literal>*</literal>”), то все записи в кэше, соответствующие |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
385 этой маске, будут удалены из кэша. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
386 </para> |
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 <para> |
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 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
391 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
|
392 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
393 map $request_method $purge_method { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
394 PURGE 1; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
395 default 0; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
396 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
397 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
398 server { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
399 ... |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
400 location / { |
1185
f9c8336fe43c
Aligned configuration examples with fastcgi/scgi_cache_purge.
Ruslan Ermilov <ru@nginx.com>
parents:
1184
diff
changeset
|
401 scgi_pass http://backend; |
f9c8336fe43c
Aligned configuration examples with fastcgi/scgi_cache_purge.
Ruslan Ermilov <ru@nginx.com>
parents:
1184
diff
changeset
|
402 scgi_cache cache_zone; |
f9c8336fe43c
Aligned configuration examples with fastcgi/scgi_cache_purge.
Ruslan Ermilov <ru@nginx.com>
parents:
1184
diff
changeset
|
403 scgi_cache_key $uri; |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
404 scgi_cache_purge $purge_method; |
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 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
408 <note> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
409 Функциональность доступна как часть |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
410 <commercial_version>коммерческой подписки</commercial_version>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
411 </note> |
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 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
415 |
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 <directive name="scgi_cache_revalidate"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
418 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
419 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
420 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
421 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
422 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
423 <appeared-in>1.5.7</appeared-in> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
424 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
425 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
426 Разрешает ревалидацию просроченных элементов кэша при помощи |
1246
5be7716a5684
Documented If-None-Match in proxy_cache_revalidate and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1190
diff
changeset
|
427 условных запросов с полями заголовка |
5be7716a5684
Documented If-None-Match in proxy_cache_revalidate and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1190
diff
changeset
|
428 <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
|
429 </para> |
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 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
434 <directive name="scgi_cache_use_stale"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
435 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
436 <literal>error</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
437 <literal>timeout</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
438 <literal>invalid_header</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
439 <literal>updating</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
440 <literal>http_500</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
441 <literal>http_503</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
442 <literal>http_403</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
443 <literal>http_404</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
444 <literal>off</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
445 ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
446 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
447 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
448 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
449 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
450 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
451 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
452 Определяет, в каких случаях можно использовать устаревший закэшированный ответ, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
453 если при работе с SCGI-сервером возникла ошибка. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
454 Параметры директивы совпадают с параметрами |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
455 директивы <link id="scgi_next_upstream"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
456 </para> |
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 Кроме того, дополнительный параметр <literal>updating</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
460 разрешает использовать устаревший закэшированный ответ, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
461 если на данный момент он уже обновляется. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
462 Это позволяет минимизировать число обращений к SCGI-серверам |
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 </para> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
467 Чтобы минимизировать число обращений к SCGI-серверам при |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
468 заполнении нового элемента кэша, можно воспользоваться директивой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
469 <link id="scgi_cache_lock"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
470 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
471 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
472 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
473 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
474 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
475 <directive name="scgi_cache_valid"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
476 <syntax>[<value>код</value> ...] <value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
477 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
478 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
479 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
480 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
481 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
482 <para> |
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 Например, директивы |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
485 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
486 scgi_cache_valid 200 302 10m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
487 scgi_cache_valid 404 1m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
488 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
489 задают время кэширования 10 минут для ответов с кодами 200 и 302 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
490 и 1 минуту для ответов с кодом 404. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
491 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
492 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
493 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
494 Если указано только <value>время</value> кэширования, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
495 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
496 scgi_cache_valid 5m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
497 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
498 то кэшируются только ответы 200, 301 и 302. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
499 </para> |
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 <para> |
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 <literal>any</literal>: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
504 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
505 scgi_cache_valid 200 302 10m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
506 scgi_cache_valid 301 1h; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
507 scgi_cache_valid any 1m; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
508 </example> |
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 <para> |
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 Такой способ приоритетнее, чем задание времени кэширования с помощью директивы. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
515 Поле заголовка <header>X-Accel-Expires</header> задаёт время кэширования |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
516 ответа в секундах. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
517 Значение 0 запрещает кэшировать ответ. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
518 Если значение начинается с префикса <literal>@</literal>, оно задаёт абсолютное |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
519 время в секундах с начала эпохи, до которого ответ может быть закэширован. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
520 Если в заголовке нет поля <header>X-Accel-Expires</header>, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
521 параметры кэширования определяются по полям заголовка |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
522 <header>Expires</header> или <header>Cache-Control</header>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
523 Ответ, в заголовке которого есть поле <header>Set-Cookie</header>, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
524 не будет кэшироваться. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
525 Обработка одного или более из этих полей заголовка может быть отключена |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
526 при помощи директивы <link id="scgi_ignore_headers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
527 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
528 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
529 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
530 |
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 <directive name="scgi_connect_timeout"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
533 <syntax><value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
534 <default>60s</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
535 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
536 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
537 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
538 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
539 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
540 Задаёт таймаут для установления соединения с SCGI-сервером. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
541 Необходимо иметь в виду, что этот таймаут обычно не может превышать 75 секунд. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
542 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
543 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
544 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
545 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
546 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
547 <directive name="scgi_hide_header"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
548 <syntax><value>поле</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
549 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
550 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
551 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
552 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
553 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
554 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
555 По умолчанию |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
556 nginx не передаёт клиенту поля заголовка <header>Status</header> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
557 <header>X-Accel-...</header> из ответа SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
558 Директива <literal>scgi_hide_header</literal> задаёт дополнительные поля, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
559 которые не будут передаваться. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
560 Если же передачу полей нужно разрешить, можно воспользоваться |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
561 директивой <link id="scgi_pass_header"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
562 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
563 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
564 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
565 |
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 <directive name="scgi_ignore_client_abort"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
568 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
569 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
570 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
571 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
572 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
573 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
574 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
575 Определяет, закрывать ли соединение с SCGI-сервером |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
576 в случае, если клиент закрыл соединение, не дождавшись ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
577 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
578 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
579 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
580 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
581 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
582 <directive name="scgi_ignore_headers"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
583 <syntax><value>поле</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
584 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
585 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
586 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
587 <context>location</context> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
590 Запрещает обработку некоторых полей заголовка из ответа SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
591 В директиве можно указать поля <header>X-Accel-Redirect</header>, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
592 <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
|
593 <header>X-Accel-Buffering</header> (1.1.6), |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
594 <header>X-Accel-Charset</header> (1.1.6), <header>Expires</header>, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
595 <header>Cache-Control</header> и <header>Set-Cookie</header> (0.8.44). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
596 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
597 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
598 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
599 Если не запрещено, обработка этих полей заголовка заключается в следующем: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
600 <list type="bullet" compact="no"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
601 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
602 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
603 <header>X-Accel-Expires</header>, <header>Expires</header>, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
604 <header>Cache-Control</header> и <header>Set-Cookie</header> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
605 задают параметры <link id="scgi_cache_valid">кэширования</link> ответа; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
606 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
607 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
608 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
609 <header>X-Accel-Redirect</header> производит |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
610 <link doc="ngx_http_core_module.xml" id="internal">внутреннее |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
611 перенаправление</link> на указанный URI; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
612 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
613 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
614 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
615 <header>X-Accel-Limit-Rate</header> задаёт |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
616 <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
|
617 скорости</link> передачи ответа клиенту; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
618 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
619 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
620 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
621 <header>X-Accel-Buffering</header> включает или выключает |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
622 <link id="scgi_buffering">буферизацию</link> ответа; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
623 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
624 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
625 <listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
626 <header>X-Accel-Charset</header> задаёт желаемую |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
627 <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
|
628 ответа. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
629 </listitem> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
630 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
631 </list> |
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 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
635 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
636 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
637 <directive name="scgi_intercept_errors"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
638 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
639 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
640 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
641 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
642 <context>location</context> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
645 Определяет, передавать ли клиенту ответы SCGI-сервера с кодом |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
646 больше либо равным 300, или же перенаправлять их на обработку nginx’у с помощью |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
647 директивы <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
|
648 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
649 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
650 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
653 <directive name="scgi_max_temp_file_size"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
654 <syntax><value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
655 <default>1024m</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
656 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
657 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
658 <context>location</context> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
661 Если включена <link id="scgi_buffering">буферизация</link> ответов |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
662 SCGI-сервера, и ответ не вмещается целиком в буферы, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
663 заданные директивами <link id="scgi_buffer_size"/> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
664 <link id="scgi_buffers"/>, часть ответа может быть записана во временный файл. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
665 Эта директива задаёт максимальный <value>размер</value> временного файла. |
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 директивой <link id="scgi_temp_file_write_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
668 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
669 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
670 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
671 Значение 0 отключает возможность буферизации ответов во временные файлы. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
672 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
673 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
674 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
675 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
676 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
677 <directive name="scgi_next_upstream"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
678 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
679 <literal>error</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
680 <literal>timeout</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
681 <literal>invalid_header</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
682 <literal>http_500</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
683 <literal>http_503</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
684 <literal>http_403</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
685 <literal>http_404</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
686 <literal>off</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
687 ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
688 <default>error timeout</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
689 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
690 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
691 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
692 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
693 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
694 Определяет, в каких случаях запрос будет передан следующему серверу: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
695 <list type="tag"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
696 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
697 <tag-name><literal>error</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
698 <tag-desc>произошла ошибка соединения с сервером, передачи ему запроса или |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
699 чтения заголовка ответа сервера;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
700 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
701 <tag-name><literal>timeout</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
702 <tag-desc>произошёл таймаут во время соединения с сервером, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
703 передачи ему запроса или чтения заголовка ответа сервера;</tag-desc> |
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 <tag-name><literal>invalid_header</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
706 <tag-desc>сервер вернул пустой или неверный ответ;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
707 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
708 <tag-name><literal>http_500</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
709 <tag-desc>сервер вернул ответ с кодом 500;</tag-desc> |
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 <tag-name><literal>http_503</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
712 <tag-desc>сервер вернул ответ с кодом 503;</tag-desc> |
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 <tag-name><literal>http_403</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
715 <tag-desc>сервер вернул ответ с кодом 403;</tag-desc> |
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 <tag-name><literal>http_404</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
718 <tag-desc>сервер вернул ответ с кодом 404;</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
719 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
720 <tag-name><literal>off</literal></tag-name> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
721 <tag-desc>запрещает передачу запроса следующему серверу.</tag-desc> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
722 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
723 </list> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
726 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
727 Необходимо понимать, что передача запроса следующему серверу возможна |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
728 только при условии, что клиенту ещё ничего не передавалось. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
729 То есть, если ошибка или таймаут возникли в середине передачи ответа, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
730 то исправить это уже невозможно. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
731 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
732 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
733 <para> |
1289
57fc39924d42
Proxy/memcached/fastcgi/scgi/uwsgi: updated link in _next_upstream directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1246
diff
changeset
|
734 Директива также определяет, что считается |
57fc39924d42
Proxy/memcached/fastcgi/scgi/uwsgi: updated link in _next_upstream directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1246
diff
changeset
|
735 <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
|
736 попыткой</link> работы с сервером. |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
737 Случаи <literal>error</literal>, <literal>timeout</literal> и |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
738 <literal>invalid_header</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
739 всегда считаются неудачными попытками, даже если они не указаны в директиве. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
740 Случаи <literal>http_500</literal> и <literal>http_503</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
741 считаются неудачными попытками, только если они указаны в директиве. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
742 Случаи <literal>http_403</literal> и <literal>http_404</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
743 никогда не считаются неудачными попытками. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
744 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
745 |
1290
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
746 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
747 Передача запроса следующему серверу может быть ограничена по |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
748 <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
|
749 и по <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
|
750 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
751 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
752 </directive> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
753 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
754 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
755 <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
|
756 <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
|
757 <default>0</default> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
758 <context>http</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
759 <context>server</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
760 <context>location</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
761 <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
|
762 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
763 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
764 Ограничивает время, в течение которого возможна передача запроса |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
765 <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
|
766 Значение <literal>0</literal> отключает это ограничение. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
767 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
768 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
769 </directive> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
770 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
771 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
772 <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
|
773 <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
|
774 <default>0</default> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
775 <context>http</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
776 <context>server</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
777 <context>location</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
778 <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
|
779 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
780 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
781 Ограничивает число допустимых попыток для передачи запроса |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
782 <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
|
783 Значение <literal>0</literal> отключает это ограничение. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
784 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
785 |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
786 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
789 <directive name="scgi_no_cache"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
790 <syntax><value>строка</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
791 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
792 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
793 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
794 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
795 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
796 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
797 Задаёт условия, при которых ответ не будет сохраняться в кэш. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
798 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
799 то ответ не будет сохранён: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
800 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
801 scgi_no_cache $cookie_nocache $arg_nocache$arg_comment; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
802 scgi_no_cache $http_pragma $http_authorization; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
803 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
804 Можно использовать совместно с директивой <link id="scgi_cache_bypass"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
805 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
806 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
807 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
808 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
809 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
810 <directive name="scgi_param"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
811 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
812 <value>параметр</value> <value>значение</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
813 [<literal>if_not_empty</literal>]</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
814 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
815 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
816 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
817 <context>location</context> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
820 Задаёт <value>параметр</value>, который будет передаваться SCGI-серверу. |
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 Директивы наследуются с предыдущего уровня при условии, что на данном |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
823 уровне не описаны свои директивы <literal>scgi_param</literal>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
824 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
825 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
826 <para> |
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 <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
|
829 окружения CGI</link> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
830 должны передаваться как заголовки SCGI, см. файл <path>scgi_params</path> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
831 из дистрибутива: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
832 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
833 location / { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
834 include scgi_params; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
835 ... |
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 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
838 </para> |
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 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
841 Если директива указана с <literal>if_not_empty</literal> (1.1.11), |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
842 то такой параметр с пустым значением передаваться на сервер не будет: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
843 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
844 scgi_param HTTPS $https if_not_empty; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
845 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
846 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
847 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
848 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
849 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
850 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
851 <directive name="scgi_pass"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
852 <syntax><value>адрес</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
853 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
854 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
855 <context>if в location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
856 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
857 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
858 Задаёт адрес SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
859 Адрес может быть указан в виде доменного имени или адреса, и порта, например, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
860 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
861 scgi_pass localhost:9000; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
862 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
863 или в виде пути UNIX-сокета: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
864 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
865 scgi_pass unix:/tmp/scgi.socket; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
866 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
867 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
868 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
869 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
870 Если доменному имени соответствует несколько адресов, то все они будут |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
871 использоваться по очереди (round-robin). |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
872 И, кроме того, адрес может быть |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
873 <link doc="ngx_http_upstream_module.xml">группой серверов</link>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
874 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
875 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
876 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
877 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
878 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
879 <directive name="scgi_pass_header"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
880 <syntax><value>поле</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
881 <default/> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
882 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
883 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
884 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
885 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
886 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
887 Разрешает передавать от SCGI-сервера клиенту |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
888 <link id="scgi_hide_header">запрещённые для передачи</link> поля заголовка. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
889 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
890 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
891 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
892 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
893 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
894 <directive name="scgi_read_timeout"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
895 <syntax><value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
896 <default>60s</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
897 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
898 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
899 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
900 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
901 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
902 Задаёт таймаут при чтении ответа SCGI-сервера. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
903 Таймаут устанавливается не на всю передачу ответа, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
904 а только между двумя операциями чтения. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
905 Если по истечении этого времени SCGI-сервер ничего не передаст, |
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 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
912 <directive name="scgi_pass_request_body"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
913 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
914 <default>on</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
915 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
916 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
917 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
918 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
919 <para> |
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 на SCGI-сервер. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
922 См. также директиву <link id="scgi_pass_request_headers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
923 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
924 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
925 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
926 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
927 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
928 <directive name="scgi_pass_request_headers"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
929 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
930 <default>on</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
931 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
932 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
933 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
934 |
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 SCGI-сервер. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
938 См. также директивы <link id="scgi_pass_request_body"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
939 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
940 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
941 </directive> |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
944 <directive name="scgi_send_timeout"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
945 <syntax><value>время</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
946 <default>60s</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
947 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
948 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
949 <context>location</context> |
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 Задаёт таймаут при передаче запроса SCGI-серверу. |
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 а только между двумя операциями записи. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
955 Если по истечении этого времени SCGI-сервер не примет новых данных, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
956 соединение закрывается. |
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_store"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
963 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
964 <literal>on</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
965 <literal>off</literal> | |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
966 <value>строка</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
967 <default>off</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
968 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
969 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
970 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
971 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
972 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
973 Разрешает сохранение на диск файлов. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
974 Параметр <literal>on</literal> сохраняет файлы в соответствии с путями, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
975 указанными в директивах |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
976 <link doc="ngx_http_core_module.xml" id="alias"/> или |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
977 <link doc="ngx_http_core_module.xml" id="root"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
978 Параметр <literal>off</literal> запрещает сохранение файлов. |
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 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
981 scgi_store /data/www$original_uri; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
982 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
983 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
984 |
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 <header>Last-Modified</header> в заголовке ответа. |
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 Начиная с версии 0.8.9, временный файл и постоянное место хранения ответа |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
991 могут располагаться на разных файловых системах. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
992 Однако нужно учитывать, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
993 что в этом случае вместо дешёвой операции переименовывания в пределах |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
994 одной файловой системы файл копируется с одной файловой системы на другую. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
995 Поэтому лучше, если сохраняемые файлы будут находиться на той же файловой |
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 <link id="scgi_temp_path"/> для данного location. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
998 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
999 |
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 неизменяемых файлов, например, так: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1003 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1004 location /images/ { |
1184
55857cbf562d
Fixed alignment issues after mechanical conversion from fastcgi.
Ruslan Ermilov <ru@nginx.com>
parents:
1183
diff
changeset
|
1005 root /data/www; |
55857cbf562d
Fixed alignment issues after mechanical conversion from fastcgi.
Ruslan Ermilov <ru@nginx.com>
parents:
1183
diff
changeset
|
1006 error_page 404 = /fetch$uri; |
1183
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1007 } |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1008 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1009 location /fetch/ { |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1010 internal; |
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 scgi_pass backend:9000; |
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 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1015 scgi_store on; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1016 scgi_store_access user:rw group:rw all:r; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1017 scgi_temp_path /data/temp; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1018 |
1184
55857cbf562d
Fixed alignment issues after mechanical conversion from fastcgi.
Ruslan Ermilov <ru@nginx.com>
parents:
1183
diff
changeset
|
1019 alias /data/www/; |
1183
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 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1022 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1023 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1024 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1025 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1026 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1027 <directive name="scgi_store_access"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1028 <syntax><value>пользователи</value>:<value>права</value> ...</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1029 <default>user:rw</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1030 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1031 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1032 <context>location</context> |
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 <para> |
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 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1037 scgi_store_access user:rw group:rw all:r; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1038 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1039 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1040 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1041 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1042 Если заданы какие-либо права для <literal>group</literal> или |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1043 <literal>all</literal>, то права для <literal>user</literal> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1044 указывать необязательно: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1045 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1046 scgi_store_access group:rw all:r; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1047 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1048 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1049 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1050 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1051 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1052 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1053 <directive name="scgi_temp_file_write_size"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1054 <syntax><value>размер</value></syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1055 <default>8k|16k</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1056 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1057 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1058 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1059 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1060 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1061 Ограничивает <value>размер</value> данных, сбрасываемых во временный файл |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1062 за один раз, при включённой буферизации ответов SCGI-сервера |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1063 во временные файлы. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1064 По умолчанию <value>размер</value> ограничен двумя буферами, заданными |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1065 директивами <link id="scgi_buffer_size"/> и <link id="scgi_buffers"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1066 Максимальный размер временного файла задаётся директивой |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1067 <link id="scgi_max_temp_file_size"/>. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1068 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1069 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1070 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1071 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1072 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1073 <directive name="scgi_temp_path"> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1074 <syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1075 <value>путь</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1076 [<value>уровень1</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1077 [<value>уровень2</value> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1078 [<value>уровень3</value>]]]</syntax> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1079 <default>scgi_temp</default> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1080 <context>http</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1081 <context>server</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1082 <context>location</context> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1083 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1084 <para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1085 Задаёт имя каталога для хранения временных файлов с данными, |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1086 полученными от SCGI-серверов. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1087 В каталоге может использоваться иерархия подкаталогов до трёх уровней. |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1088 Например, при такой конфигурации |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1089 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1090 scgi_temp_path /spool/nginx/scgi_temp 1 2; |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1091 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1092 временный файл будет следующего вида: |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1093 <example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1094 /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
|
1095 </example> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1096 </para> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1097 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1098 </directive> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1099 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1100 </section> |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1101 |
1ce4912eb182
Translated SCGI module documentation into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1102 </module> |