Mercurial > hg > nginx-site
annotate xml/ru/docs/http/ngx_http_uwsgi_module.xml @ 1349:97c8b146cb0e
Split the long paragraph about caching parameters into the list.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 30 Oct 2014 20:26:47 +0300 |
parents | da296387cdac |
children | dbb618f60a54 |
rev | line source |
---|---|
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
2 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
3 <!-- |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
4 Copyright (C) Igor Sysoev |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
5 Copyright (C) Nginx, Inc. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 --> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
7 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
9 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
10 <module name="Модуль ngx_http_uwsgi_module" |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
11 link="/ru/docs/http/ngx_http_uwsgi_module.html" |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
12 lang="ru" |
1345
da296387cdac
Documented the Vary support in proxy_ignore_headers and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1343
diff
changeset
|
13 rev="11"> |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
14 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
15 <section id="summary"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
16 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
17 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
18 Модуль <literal>ngx_http_uwsgi_module</literal> позволяет передавать |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
19 запросы uwsgi-серверу. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
20 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
21 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
22 </section> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
23 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
24 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 <section id="example" name="Пример конфигурации"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
26 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
27 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
28 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
29 location / { |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
30 include uwsgi_params; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
31 uwsgi_pass localhost:9000; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
32 } |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
33 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
34 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
35 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
36 </section> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
37 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
38 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
39 <section id="directives" name="Директивы"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
40 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
41 <directive name="uwsgi_bind"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
42 <syntax><value>адрес</value> | <literal>off</literal></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
43 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
44 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
45 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
46 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
47 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
48 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
49 Задаёт локальный IP-<value>адрес</value>, который будет использоваться в |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
50 исходящих соединениях с uwsgi-сервером. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
51 В значении параметра допустимо использование переменных (1.3.12). |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
52 Специальное значение <literal>off</literal> (1.3.12) отменяет действие |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
53 унаследованной с предыдущего уровня конфигурации |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
54 директивы <literal>uwsgi_bind</literal>, позволяя системе |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
55 самостоятельно выбирать локальный IP-адрес. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
56 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
57 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
58 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
59 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
60 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
61 <directive name="uwsgi_buffer_size"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
62 <syntax><value>размер</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
63 <default>4k|8k</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
64 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
65 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
66 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
67 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
68 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
69 Задаёт <value>размер</value> буфера, в который будет читаться |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
70 первая часть ответа, получаемого от uwsgi-сервера. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
71 В этой части ответа находится, как правило, небольшой заголовок ответа. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
72 По умолчанию размер буфера равен размеру одного буфера в директиве |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
73 <link id="uwsgi_buffers"/>, однако его можно сделать меньше. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
74 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
75 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
76 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
77 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
78 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
79 <directive name="uwsgi_buffering"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
80 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
81 <default>on</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
82 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
83 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
84 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
85 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
86 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
87 Разрешает или запрещает использовать буферизацию ответов uwsgi-сервера. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
88 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
89 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
90 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
91 Если буферизация включена, то nginx принимает ответ uwsgi-сервера |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
92 как можно быстрее, сохраняя его в буферы, заданные директивами |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
93 <link id="uwsgi_buffer_size"/> и <link id="uwsgi_buffers"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
94 Если ответ не вмещается целиком в память, то его часть может быть записана |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
95 на диск во <link id="uwsgi_temp_path">временный файл</link>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
96 Запись во временные файлы контролируется директивами |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
97 <link id="uwsgi_max_temp_file_size"/> и |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
98 <link id="uwsgi_temp_file_write_size"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
99 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
100 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
101 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
102 Если буферизация выключена, то ответ синхронно передаётся клиенту сразу же |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
103 по мере его поступления. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
104 nginx не пытается считать весь ответ uwsgi-сервера. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
105 Максимальный размер данных, который nginx может принять от сервера |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
106 за один раз, задаётся директивой <link id="uwsgi_buffer_size"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
107 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
108 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
109 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
110 Буферизация может быть также включена или выключена путём передачи |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
111 значения “<literal>yes</literal>” или “<literal>no</literal>” в поле |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
112 <header>X-Accel-Buffering</header> заголовка ответа. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
113 Эту возможность можно запретить с помощью директивы |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
114 <link id="uwsgi_ignore_headers"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
115 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
116 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
117 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
118 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
119 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
120 <directive name="uwsgi_buffers"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
121 <syntax><value>число</value> <value>размер</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
122 <default>8 4k|8k</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
123 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
124 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
125 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
126 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
127 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
128 Задаёт <value>число</value> и <value>размер</value> буферов |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
129 для одного соединения, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
130 в которые будет читаться ответ, получаемый от uwsgi-сервера. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
131 По умолчанию размер одного буфера равен размеру страницы. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
132 В зависимости от платформы это или 4K, или 8K. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
133 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
134 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
135 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
136 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
137 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
138 <directive name="uwsgi_busy_buffers_size"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
139 <syntax><value>размер</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
140 <default>8k|16k</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
141 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
142 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
143 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
144 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
145 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
146 При включённой <link id="uwsgi_buffering">буферизации</link> ответов |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
147 uwsgi-сервера, ограничивает суммарный <value>размер</value> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
148 буферов, которые могут быть заняты для отправки ответа клиенту, пока |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
149 ответ ещё не прочитан целиком. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
150 Оставшиеся буферы тем временем могут использоваться для чтения ответа |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
151 и, при необходимости, буферизации части ответа во временный файл. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
152 По умолчанию <value>размер</value> ограничен двумя буферами, заданными |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
153 директивами <link id="uwsgi_buffer_size"/> и <link id="uwsgi_buffers"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
154 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
155 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
156 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
157 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
158 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
159 <directive name="uwsgi_cache"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
160 <syntax><value>зона</value> | <literal>off</literal></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
161 <default>off</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
162 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
163 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
164 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
165 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
166 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
167 Задаёт зону разделяемой памяти, используемой для кэширования. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
168 Одна и та же зона может использоваться в нескольких местах. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
169 Параметр <literal>off</literal> запрещает кэширование, унаследованное |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
170 с предыдущего уровня конфигурации. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
171 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
172 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
173 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
174 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
175 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
176 <directive name="uwsgi_cache_bypass"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
177 <syntax><value>строка</value> ...</syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
178 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
179 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
180 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
181 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
182 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
183 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
184 Задаёт условия, при которых ответ не будет браться из кэша. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
185 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
186 то ответ не берётся из кэша: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
187 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
188 uwsgi_cache_bypass $cookie_nocache $arg_nocache$arg_comment; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
189 uwsgi_cache_bypass $http_pragma $http_authorization; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
190 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
191 Можно использовать совместно с директивой <link id="uwsgi_no_cache"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
192 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
193 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
194 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
195 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
196 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
197 <directive name="uwsgi_cache_key"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
198 <syntax><value>строка</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
199 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
200 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
201 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
202 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
203 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
204 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
205 Задаёт ключ для кэширования, например, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
206 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
207 uwsgi_cache_key localhost:9000$request_uri; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
208 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
209 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
210 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
211 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
212 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
213 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
214 <directive name="uwsgi_cache_lock"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
215 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
216 <default>off</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
217 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
218 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
219 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
220 <appeared-in>1.1.12</appeared-in> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
221 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
222 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
223 Если включено, одновременно только одному запросу будет позволено |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
224 заполнить новый элемент кэша, идентифицируемый согласно директиве |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
225 <link id="uwsgi_cache_key"/>, передав запрос на uwsgi-сервер. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
226 Остальные запросы этого же элемента будут либо ожидать |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
227 появления ответа в кэше, либо освобождения блокировки |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
228 этого элемента, в течение времени, заданного директивой |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
229 <link id="uwsgi_cache_lock_timeout"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
230 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
231 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
232 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
233 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
234 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
235 <directive name="uwsgi_cache_lock_timeout"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
236 <syntax><value>время</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
237 <default>5s</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
238 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
239 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
240 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
241 <appeared-in>1.1.12</appeared-in> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
242 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
243 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
244 Задаёт таймаут для <link id="uwsgi_cache_lock"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
245 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
246 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
247 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
248 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
249 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
250 <directive name="uwsgi_cache_methods"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
251 <syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
252 <literal>GET</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
253 <literal>HEAD</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
254 <literal>POST</literal> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
255 ...</syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
256 <default>GET HEAD</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
257 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
258 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
259 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
260 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
261 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
262 Если метод запроса клиента указан в этой директиве, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
263 то ответ будет закэширован. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
264 Методы “<literal>GET</literal>” и “<literal>HEAD</literal>” всегда добавляются |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
265 в список, но тем не менее рекомендуется перечислять их явно. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
266 См. также директиву <link id="uwsgi_no_cache"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
267 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
268 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
269 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
270 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
271 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
272 <directive name="uwsgi_cache_min_uses"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
273 <syntax><value>число</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
274 <default>1</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
275 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
276 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
277 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
278 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
279 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
280 Задаёт <value>число</value> запросов, после которого ответ будет закэширован. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
281 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
282 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
283 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
284 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
285 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
286 <directive name="uwsgi_cache_path"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
287 <syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
288 <value>путь</value> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
289 [<literal>levels</literal>=<value>уровни</value>] |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
290 <literal>keys_zone</literal>=<value>имя</value>:<value>размер</value> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
291 [<literal>inactive</literal>=<value>время</value>] |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
292 [<literal>max_size</literal>=<value>размер</value>] |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
293 [<literal>loader_files</literal>=<value>число</value>] |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
294 [<literal>loader_sleep</literal>=<value>время</value>] |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
295 [<literal>loader_threshold</literal>=<value>время</value>]</syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
296 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
297 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
298 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
299 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
300 Задаёт путь и другие параметры кэша. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
301 Данные кэша хранятся в файлах. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
302 Именем файла в кэше является результат функции MD5 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
303 от <link id="uwsgi_cache_key">ключа кэширования</link>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
304 Параметр <literal>levels</literal> задаёт уровни иерархии кэша, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
305 например, при использовании |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
306 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
307 uwsgi_cache_path /data/nginx/cache levels=1:2 keys_zone=one:10m; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
308 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
309 имена файлов в кэше будут такого вида: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
310 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
311 /data/nginx/cache/<emphasis>c</emphasis>/<emphasis>29</emphasis>/b7f54b2df7773722d382f4809d650<emphasis>29c</emphasis> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
312 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
313 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
314 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
315 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
316 Кэшируемый ответ сначала записывается во временный файл, а потом этот файл |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
317 переименовывается. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
318 Начиная с версии 0.8.9, временные файлы и кэш |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
319 могут располагаться на разных файловых системах. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
320 Однако нужно учитывать, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
321 что в этом случае вместо дешёвой операции переименовывания в пределах |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
322 одной файловой системы файл копируется с одной файловой системы на другую. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
323 Поэтому лучше, если кэш будет находиться на той же файловой |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
324 системе, что и каталог с временными файлами, задаваемый директивой |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
325 <link id="uwsgi_temp_path"/> для данного location. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
326 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
327 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
328 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
329 Кроме того, все активные ключи и информация о данных хранятся в зоне |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
330 разделяемой памяти, <value>имя</value> и <value>размер</value> которой |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
331 задаются параметром <literal>keys_zone</literal>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
332 Зоны размером в 1 мегабайт достаточно для хранения около 8 тысяч ключей. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
333 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
334 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
335 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
336 Если к данным кэша не обращаются в течение времени, заданного параметром |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
337 <literal>inactive</literal>, то данные удаляются, независимо от их свежести. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
338 По умолчанию <literal>inactive</literal> равен 10 минутам. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
339 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
340 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
341 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
342 Специальный процесс “cache manager” следит за максимальным размером кэша, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
343 заданным параметром <literal>max_size</literal>, и при превышении |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
344 его размеров удаляет наименее востребованные данные. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
345 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
346 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
347 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
348 Через минуту после старта активируется специальный процесс “cache loader”, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
349 который загружает в зону кэша информацию о ранее закэшированных данных, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
350 хранящихся на файловой системе. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
351 Загрузка происходит итерациями. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
352 За одну итерацию загружается не более <literal>loader_files</literal> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
353 элементов (по умолчанию 100). |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
354 Кроме того, время работы одной итерации ограничено параметром |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
355 <literal>loader_threshold</literal> (по умолчанию 200 миллисекунд). |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
356 Между итерациями делается пауза на время, заданное параметром |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
357 <literal>loader_sleep</literal> (по умолчанию 50 миллисекунд). |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
358 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
359 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
360 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
361 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
362 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
363 <directive name="uwsgi_cache_purge"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
364 <syntax>строка ...</syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
365 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
366 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
367 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
368 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
369 <appeared-in>1.5.7</appeared-in> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
370 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
371 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
372 Задаёт условия, при которых запрос будет считаться запросом |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
373 на очистку кэша. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
374 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
375 то запись в кэше с соответствующим |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
376 <link id="uwsgi_cache_key">ключом кэширования</link> удаляется. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
377 В результате успешной операции возвращается ответ с кодом |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
378 <http-status code="204" text="No Content"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
379 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
380 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
381 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
382 Если <link id="uwsgi_cache_key">ключ кэширования</link> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
383 запроса на очистку заканчивается |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
384 звёздочкой (“<literal>*</literal>”), то все записи в кэше, соответствующие |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
385 этой маске, будут удалены из кэша. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
386 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
387 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
388 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
389 Пример конфигурации: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
390 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
391 uwsgi_cache_path /data/nginx/cache keys_zone=cache_zone:10m; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
392 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
393 map $request_method $purge_method { |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
394 PURGE 1; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
395 default 0; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
396 } |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
397 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
398 server { |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
399 ... |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
400 location / { |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
401 uwsgi_pass http://backend; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
402 uwsgi_cache cache_zone; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
403 uwsgi_cache_key $uri; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
404 uwsgi_cache_purge $purge_method; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
405 } |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
406 } |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
407 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
408 <note> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
409 Функциональность доступна как часть |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
410 <commercial_version>коммерческой подписки</commercial_version>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
411 </note> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
412 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
413 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
414 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
415 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
416 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
417 <directive name="uwsgi_cache_revalidate"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
418 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
419 <default>off</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
420 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
421 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
422 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
423 <appeared-in>1.5.7</appeared-in> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
424 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
425 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
426 Разрешает ревалидацию просроченных элементов кэша при помощи |
1246
5be7716a5684
Documented If-None-Match in proxy_cache_revalidate and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1199
diff
changeset
|
427 условных запросов с полями заголовка |
5be7716a5684
Documented If-None-Match in proxy_cache_revalidate and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1199
diff
changeset
|
428 <header>If-Modified-Since</header> и <header>If-None-Match</header>. |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
429 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
430 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
431 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
432 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
433 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
434 <directive name="uwsgi_cache_use_stale"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
435 <syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
436 <literal>error</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
437 <literal>timeout</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
438 <literal>invalid_header</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
439 <literal>updating</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
440 <literal>http_500</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
441 <literal>http_503</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
442 <literal>http_403</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
443 <literal>http_404</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
444 <literal>off</literal> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
445 ...</syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
446 <default>off</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
447 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
448 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
449 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
450 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
451 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
452 Определяет, в каких случаях можно использовать устаревший закэшированный ответ, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
453 если при работе с uwsgi-сервером возникла ошибка. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
454 Параметры директивы совпадают с параметрами |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
455 директивы <link id="uwsgi_next_upstream"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
456 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
457 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
458 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
459 Кроме того, дополнительный параметр <literal>updating</literal> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
460 разрешает использовать устаревший закэшированный ответ, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
461 если на данный момент он уже обновляется. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
462 Это позволяет минимизировать число обращений к uwsgi-серверам |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
463 при обновлении закэшированных данных. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
464 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
465 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
466 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
467 Чтобы минимизировать число обращений к uwsgi-серверам при |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
468 заполнении нового элемента кэша, можно воспользоваться директивой |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
469 <link id="uwsgi_cache_lock"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
470 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
471 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
472 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
473 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
474 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
475 <directive name="uwsgi_cache_valid"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
476 <syntax>[<value>код</value> ...] <value>время</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
477 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
478 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
479 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
480 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
481 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
482 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
483 Задаёт время кэширования для разных кодов ответа. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
484 Например, директивы |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
485 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
486 uwsgi_cache_valid 200 302 10m; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
487 uwsgi_cache_valid 404 1m; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
488 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
489 задают время кэширования 10 минут для ответов с кодами 200 и 302 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
490 и 1 минуту для ответов с кодом 404. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
491 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
492 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
493 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
494 Если указано только <value>время</value> кэширования, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
495 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
496 uwsgi_cache_valid 5m; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
497 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
498 то кэшируются только ответы 200, 301 и 302. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
499 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
500 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
501 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
502 Кроме того, можно кэшировать любые ответы с помощью параметра |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
503 <literal>any</literal>: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
504 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
505 uwsgi_cache_valid 200 302 10m; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
506 uwsgi_cache_valid 301 1h; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
507 uwsgi_cache_valid any 1m; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
508 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
509 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
510 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
511 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
512 Параметры кэширования могут также быть заданы непосредственно |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
513 в заголовке ответа. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
514 Такой способ приоритетнее, чем задание времени кэширования с помощью директивы. |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
515 <list type="bullet" compact="no"> |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
516 |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
517 <listitem> |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
518 Поле заголовка <header>X-Accel-Expires</header> задаёт время кэширования |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
519 ответа в секундах. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
520 Значение 0 запрещает кэшировать ответ. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
521 Если значение начинается с префикса <literal>@</literal>, оно задаёт абсолютное |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
522 время в секундах с начала эпохи, до которого ответ может быть закэширован. |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
523 </listitem> |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
524 |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
525 <listitem> |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
526 Если в заголовке нет поля <header>X-Accel-Expires</header>, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
527 параметры кэширования определяются по полям заголовка |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
528 <header>Expires</header> или <header>Cache-Control</header>. |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
529 </listitem> |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
530 |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
531 <listitem> |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
532 Ответ, в заголовке которого есть поле <header>Set-Cookie</header>, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
533 не будет кэшироваться. |
1349
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
534 </listitem> |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
535 |
97c8b146cb0e
Split the long paragraph about caching parameters into the list.
Ruslan Ermilov <ru@nginx.com>
parents:
1345
diff
changeset
|
536 </list> |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
537 Обработка одного или более из этих полей заголовка может быть отключена |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
538 при помощи директивы <link id="uwsgi_ignore_headers"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
539 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
540 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
541 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
542 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
543 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
544 <directive name="uwsgi_connect_timeout"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
545 <syntax><value>время</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
546 <default>60s</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
547 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
548 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
549 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
550 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
551 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
552 Задаёт таймаут для установления соединения с uwsgi-сервером. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
553 Необходимо иметь в виду, что этот таймаут обычно не может превышать 75 секунд. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
554 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
555 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
556 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
557 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
558 |
1337
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
559 <directive name="uwsgi_force_ranges"> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
560 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
561 <default>off</default> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
562 <context>http</context> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
563 <context>server</context> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
564 <context>location</context> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
565 <appeared-in>1.7.7</appeared-in> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
566 |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
567 <para> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
568 Включает поддержку диапазонов запрашиваемых байт (byte-range) |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
569 для кэшированных и некэшированных ответов uwsgi-сервера |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
570 вне зависимости от наличия поля <header>Accept-Ranges</header> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
571 в заголовках этих ответов. |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
572 </para> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
573 |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
574 </directive> |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
575 |
91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1290
diff
changeset
|
576 |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
577 <directive name="uwsgi_hide_header"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
578 <syntax><value>поле</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
579 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
580 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
581 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
582 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
583 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
584 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
585 По умолчанию |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
586 nginx не передаёт клиенту поля заголовка <header>Status</header> и |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
587 <header>X-Accel-...</header> из ответа uwsgi-сервера. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
588 Директива <literal>uwsgi_hide_header</literal> задаёт дополнительные поля, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
589 которые не будут передаваться. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
590 Если же передачу полей нужно разрешить, можно воспользоваться |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
591 директивой <link id="uwsgi_pass_header"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
592 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
593 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
594 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
595 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
596 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
597 <directive name="uwsgi_ignore_client_abort"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
598 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
599 <default>off</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
600 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
601 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
602 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
603 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
604 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
605 Определяет, закрывать ли соединение с uwsgi-сервером |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
606 в случае, если клиент закрыл соединение, не дождавшись ответа. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
607 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
608 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
609 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
610 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
611 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
612 <directive name="uwsgi_ignore_headers"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
613 <syntax><value>поле</value> ...</syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
614 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
615 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
616 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
617 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
618 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
619 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
620 Запрещает обработку некоторых полей заголовка из ответа uwsgi-сервера. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
621 В директиве можно указать поля <header>X-Accel-Redirect</header>, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
622 <header>X-Accel-Expires</header>, <header>X-Accel-Limit-Rate</header> (1.1.6), |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
623 <header>X-Accel-Buffering</header> (1.1.6), |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
624 <header>X-Accel-Charset</header> (1.1.6), <header>Expires</header>, |
1345
da296387cdac
Documented the Vary support in proxy_ignore_headers and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1343
diff
changeset
|
625 <header>Cache-Control</header>, <header>Set-Cookie</header> (0.8.44) |
da296387cdac
Documented the Vary support in proxy_ignore_headers and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1343
diff
changeset
|
626 и <header>Vary</header> (1.7.7). |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
627 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
628 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
629 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
630 Если не запрещено, обработка этих полей заголовка заключается в следующем: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
631 <list type="bullet" compact="no"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
632 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
633 <listitem> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
634 <header>X-Accel-Expires</header>, <header>Expires</header>, |
1345
da296387cdac
Documented the Vary support in proxy_ignore_headers and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1343
diff
changeset
|
635 <header>Cache-Control</header>, <header>Set-Cookie</header> |
da296387cdac
Documented the Vary support in proxy_ignore_headers and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1343
diff
changeset
|
636 и <header>Vary</header> |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
637 задают параметры <link id="uwsgi_cache_valid">кэширования</link> ответа; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
638 </listitem> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
639 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
640 <listitem> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
641 <header>X-Accel-Redirect</header> производит |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
642 <link doc="ngx_http_core_module.xml" id="internal">внутреннее |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
643 перенаправление</link> на указанный URI; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
644 </listitem> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
645 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
646 <listitem> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
647 <header>X-Accel-Limit-Rate</header> задаёт |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
648 <link doc="ngx_http_core_module.xml" id="limit_rate">ограничение |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
649 скорости</link> передачи ответа клиенту; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
650 </listitem> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
651 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
652 <listitem> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
653 <header>X-Accel-Buffering</header> включает или выключает |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
654 <link id="uwsgi_buffering">буферизацию</link> ответа; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
655 </listitem> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
656 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
657 <listitem> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
658 <header>X-Accel-Charset</header> задаёт желаемую |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
659 <link doc="ngx_http_charset_module.xml" id="charset">кодировку</link> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
660 ответа. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
661 </listitem> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
662 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
663 </list> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
664 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
665 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
666 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
667 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
668 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
669 <directive name="uwsgi_intercept_errors"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
670 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
671 <default>off</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
672 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
673 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
674 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
675 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
676 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
677 Определяет, передавать ли клиенту ответы uwsgi-сервера с кодом |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
678 больше либо равным 300, или же перенаправлять их на обработку nginx’у с помощью |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
679 директивы <link doc="ngx_http_core_module.xml" id="error_page"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
680 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
681 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
682 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
683 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
684 |
1342
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
685 <directive name="uwsgi_limit_rate"> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
686 <syntax><value>скорость</value></syntax> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
687 <default>0</default> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
688 <context>http</context> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
689 <context>server</context> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
690 <context>location</context> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
691 <appeared-in>1.7.7</appeared-in> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
692 |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
693 <para> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
694 Ограничивает скорость чтения ответа от uwsgi-сервера. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
695 <value>Скорость</value> задаётся в байтах в секунду. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
696 Значение 0 отключает ограничение скорости. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
697 Ограничение устанавливается на запрос, |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
698 поэтому, если nginx одновременно |
1343
1bdde28e359b
Fixed fallouts from the previous change.
Ruslan Ermilov <ru@nginx.com>
parents:
1342
diff
changeset
|
699 откроет два соединения к uwsgi-серверу, |
1bdde28e359b
Fixed fallouts from the previous change.
Ruslan Ermilov <ru@nginx.com>
parents:
1342
diff
changeset
|
700 суммарная скорость будет вдвое выше заданного ограничения. |
1342
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
701 Ограничение работает только в случае, если включена |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
702 <link id="uwsgi_buffering">буферизация</link> ответов uwsgi-сервера. |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
703 </para> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
704 |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
705 </directive> |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
706 |
758fc0b02651
Documented the "proxy_limit_rate" directive and friends.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1337
diff
changeset
|
707 |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
708 <directive name="uwsgi_max_temp_file_size"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
709 <syntax><value>размер</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
710 <default>1024m</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
711 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
712 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
713 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
714 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
715 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
716 Если включена <link id="uwsgi_buffering">буферизация</link> ответов |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
717 uwsgi-сервера, и ответ не вмещается целиком в буферы, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
718 заданные директивами <link id="uwsgi_buffer_size"/> и |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
719 <link id="uwsgi_buffers"/>, часть ответа может быть записана во временный файл. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
720 Эта директива задаёт максимальный <value>размер</value> временного файла. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
721 Размер данных, сбрасываемых во временный файл за один раз, задаётся |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
722 директивой <link id="uwsgi_temp_file_write_size"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
723 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
724 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
725 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
726 Значение 0 отключает возможность буферизации ответов во временные файлы. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
727 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
728 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
729 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
730 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
731 |
1199
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
732 <directive name="uwsgi_modifier1"> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
733 <syntax><value>число</value></syntax> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
734 <default>0</default> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
735 <context>http</context> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
736 <context>server</context> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
737 <context>location</context> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
738 |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
739 <para> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
740 Задаёт значение поля <literal>modifier1</literal> в |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
741 <link url="http://uwsgi-docs.readthedocs.org/en/latest/Protocol.html#uwsgi-packet-header">заголовке |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
742 пакета uwsgi</link>. |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
743 </para> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
744 </directive> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
745 |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
746 |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
747 <directive name="uwsgi_modifier2"> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
748 <syntax><value>число</value></syntax> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
749 <default>0</default> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
750 <context>http</context> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
751 <context>server</context> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
752 <context>location</context> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
753 |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
754 <para> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
755 Задаёт значение поля <literal>modifier2</literal> в |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
756 <link url="http://uwsgi-docs.readthedocs.org/en/latest/Protocol.html#uwsgi-packet-header">заголовке |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
757 пакета uwsgi</link>. |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
758 </para> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
759 </directive> |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
760 |
5ee8a00f2bc5
Documented the uwsgi_modifier1 and uwsgi_modifier2 directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1193
diff
changeset
|
761 |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
762 <directive name="uwsgi_next_upstream"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
763 <syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
764 <literal>error</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
765 <literal>timeout</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
766 <literal>invalid_header</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
767 <literal>http_500</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
768 <literal>http_503</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
769 <literal>http_403</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
770 <literal>http_404</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
771 <literal>off</literal> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
772 ...</syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
773 <default>error timeout</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
774 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
775 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
776 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
777 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
778 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
779 Определяет, в каких случаях запрос будет передан следующему серверу: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
780 <list type="tag"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
781 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
782 <tag-name><literal>error</literal></tag-name> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
783 <tag-desc>произошла ошибка соединения с сервером, передачи ему запроса или |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
784 чтения заголовка ответа сервера;</tag-desc> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
785 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
786 <tag-name><literal>timeout</literal></tag-name> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
787 <tag-desc>произошёл таймаут во время соединения с сервером, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
788 передачи ему запроса или чтения заголовка ответа сервера;</tag-desc> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
789 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
790 <tag-name><literal>invalid_header</literal></tag-name> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
791 <tag-desc>сервер вернул пустой или неверный ответ;</tag-desc> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
792 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
793 <tag-name><literal>http_500</literal></tag-name> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
794 <tag-desc>сервер вернул ответ с кодом 500;</tag-desc> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
795 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
796 <tag-name><literal>http_503</literal></tag-name> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
797 <tag-desc>сервер вернул ответ с кодом 503;</tag-desc> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
798 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
799 <tag-name><literal>http_403</literal></tag-name> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
800 <tag-desc>сервер вернул ответ с кодом 403;</tag-desc> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
801 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
802 <tag-name><literal>http_404</literal></tag-name> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
803 <tag-desc>сервер вернул ответ с кодом 404;</tag-desc> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
804 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
805 <tag-name><literal>off</literal></tag-name> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
806 <tag-desc>запрещает передачу запроса следующему серверу.</tag-desc> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
807 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
808 </list> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
809 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
810 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
811 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
812 Необходимо понимать, что передача запроса следующему серверу возможна |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
813 только при условии, что клиенту ещё ничего не передавалось. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
814 То есть, если ошибка или таймаут возникли в середине передачи ответа, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
815 то исправить это уже невозможно. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
816 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
817 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
818 <para> |
1289
57fc39924d42
Proxy/memcached/fastcgi/scgi/uwsgi: updated link in _next_upstream directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1246
diff
changeset
|
819 Директива также определяет, что считается |
57fc39924d42
Proxy/memcached/fastcgi/scgi/uwsgi: updated link in _next_upstream directives.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1246
diff
changeset
|
820 <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
|
821 попыткой</link> работы с сервером. |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
822 Случаи <literal>error</literal>, <literal>timeout</literal> и |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
823 <literal>invalid_header</literal> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
824 всегда считаются неудачными попытками, даже если они не указаны в директиве. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
825 Случаи <literal>http_500</literal> и <literal>http_503</literal> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
826 считаются неудачными попытками, только если они указаны в директиве. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
827 Случаи <literal>http_403</literal> и <literal>http_404</literal> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
828 никогда не считаются неудачными попытками. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
829 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
830 |
1290
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
831 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
832 Передача запроса следующему серверу может быть ограничена по |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
833 <link id="uwsgi_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
|
834 и по <link id="uwsgi_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
|
835 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
836 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
837 </directive> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
838 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
839 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
840 <directive name="uwsgi_next_upstream_timeout"> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
841 <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
|
842 <default>0</default> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
843 <context>http</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
844 <context>server</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
845 <context>location</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
846 <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
|
847 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
848 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
849 Ограничивает время, в течение которого возможна передача запроса |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
850 <link id="uwsgi_next_upstream">следующему серверу</link>. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
851 Значение <literal>0</literal> отключает это ограничение. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
852 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
853 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
854 </directive> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
855 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
856 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
857 <directive name="uwsgi_next_upstream_tries"> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
858 <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
|
859 <default>0</default> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
860 <context>http</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
861 <context>server</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
862 <context>location</context> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
863 <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
|
864 |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
865 <para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
866 Ограничивает число допустимых попыток для передачи запроса |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
867 <link id="uwsgi_next_upstream">следующему серверу</link>. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
868 Значение <literal>0</literal> отключает это ограничение. |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
869 </para> |
f5cc9f2aef9a
Proxy/memcached/fastcgi/scgi/uwsgi: _next_upstream_timeout,_next_upstream_tries.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1289
diff
changeset
|
870 |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
871 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
872 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
873 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
874 <directive name="uwsgi_no_cache"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
875 <syntax><value>строка</value> ...</syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
876 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
877 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
878 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
879 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
880 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
881 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
882 Задаёт условия, при которых ответ не будет сохраняться в кэш. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
883 Если значение хотя бы одного из строковых параметров непустое и не равно “0”, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
884 то ответ не будет сохранён: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
885 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
886 uwsgi_no_cache $cookie_nocache $arg_nocache$arg_comment; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
887 uwsgi_no_cache $http_pragma $http_authorization; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
888 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
889 Можно использовать совместно с директивой <link id="uwsgi_cache_bypass"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
890 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
891 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
892 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
893 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
894 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
895 <directive name="uwsgi_param"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
896 <syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
897 <value>параметр</value> <value>значение</value> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
898 [<literal>if_not_empty</literal>]</syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
899 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
900 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
901 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
902 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
903 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
904 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
905 Задаёт <value>параметр</value>, который будет передаваться uwsgi-серверу. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
906 В качестве значения можно использовать текст, переменные и их комбинации. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
907 Директивы наследуются с предыдущего уровня при условии, что на данном |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
908 уровне не описаны свои директивы <literal>uwsgi_param</literal>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
909 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
910 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
911 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
912 Стандартные |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
913 <link url="http://tools.ietf.org/html/rfc3875#section-4.1">переменные |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
914 окружения CGI</link> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
915 должны передаваться как заголовки uwsgi, см. файл <path>uwsgi_params</path> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
916 из дистрибутива: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
917 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
918 location / { |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
919 include uwsgi_params; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
920 ... |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
921 } |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
922 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
923 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
924 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
925 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
926 Если директива указана с <literal>if_not_empty</literal> (1.1.11), |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
927 то такой параметр с пустым значением передаваться на сервер не будет: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
928 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
929 uwsgi_param HTTPS $https if_not_empty; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
930 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
931 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
932 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
933 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
934 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
935 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
936 <directive name="uwsgi_pass"> |
1192
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
937 <syntax>[<value>протокол</value>://]<value>адрес</value></syntax> |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
938 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
939 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
940 <context>if в location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
941 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
942 <para> |
1192
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
943 Задаёт протокол и адрес uwsgi-сервера. |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
944 В качестве протокола можно указать |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
945 “<literal>uwsgi</literal>” или “<literal>suwsgi</literal>” |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
946 (secured uwsgi, uwsgi через SSL). |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
947 Адрес может быть указан в виде доменного имени или адреса, и порта, например, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
948 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
949 uwsgi_pass localhost:9000; |
1192
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
950 uwsgi_pass uwsgi://localhost:9000; |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
951 uwsgi_pass suwsgi://[2001:db8::1]:9090; |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
952 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
953 или в виде пути UNIX-сокета: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
954 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
955 uwsgi_pass unix:/tmp/uwsgi.socket; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
956 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
957 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
958 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
959 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
960 Если доменному имени соответствует несколько адресов, то все они будут |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
961 использоваться по очереди (round-robin). |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
962 И, кроме того, адрес может быть |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
963 <link doc="ngx_http_upstream_module.xml">группой серверов</link>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
964 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
965 |
1192
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
966 <para> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
967 <note> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
968 Протокол secured uwsgi поддерживается начиная с версии 1.5.8. |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
969 </note> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
970 </para> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
971 |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
972 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
973 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
974 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
975 <directive name="uwsgi_pass_header"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
976 <syntax><value>поле</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
977 <default/> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
978 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
979 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
980 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
981 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
982 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
983 Разрешает передавать от uwsgi-сервера клиенту |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
984 <link id="uwsgi_hide_header">запрещённые для передачи</link> поля заголовка. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
985 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
986 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
987 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
988 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
989 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
990 <directive name="uwsgi_pass_request_body"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
991 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
992 <default>on</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
993 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
994 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
995 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
996 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
997 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
998 Позволяет запретить передачу исходного тела запроса |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
999 на uwsgi-сервер. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1000 См. также директиву <link id="uwsgi_pass_request_headers"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1001 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1002 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1003 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1004 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1005 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1006 <directive name="uwsgi_pass_request_headers"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1007 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1008 <default>on</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1009 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1010 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1011 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1012 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1013 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1014 Позволяет запретить передачу полей заголовка исходного запроса на |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1015 uwsgi-сервер. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1016 См. также директивы <link id="uwsgi_pass_request_body"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1017 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1018 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1019 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1020 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1021 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1022 <directive name="uwsgi_read_timeout"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1023 <syntax><value>время</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1024 <default>60s</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1025 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1026 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1027 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1028 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1029 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1030 Задаёт таймаут при чтении ответа uwsgi-сервера. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1031 Таймаут устанавливается не на всю передачу ответа, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1032 а только между двумя операциями чтения. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1033 Если по истечении этого времени uwsgi-сервер ничего не передаст, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1034 соединение закрывается. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1035 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1036 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1037 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1038 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1039 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1040 <directive name="uwsgi_send_timeout"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1041 <syntax><value>время</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1042 <default>60s</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1043 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1044 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1045 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1046 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1047 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1048 Задаёт таймаут при передаче запроса uwsgi-серверу. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1049 Таймаут устанавливается не на всю передачу запроса, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1050 а только между двумя операциями записи. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1051 Если по истечении этого времени uwsgi-сервер не примет новых данных, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1052 соединение закрывается. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1053 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1054 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1055 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1056 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1057 |
1192
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1058 <directive name="uwsgi_ssl_ciphers"> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1059 <syntax><value>ciphers</value></syntax> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1060 <default>DEFAULT</default> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1061 <context>http</context> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1062 <context>server</context> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1063 <context>location</context> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1064 <appeared-in>1.5.8</appeared-in> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1065 |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1066 <para> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1067 Описывает разрешённые шифры для запросов к suwsgi-серверу. |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1068 Шифры задаются в формате, поддерживаемом библиотекой OpenSSL. |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1069 </para> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1070 |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1071 <para> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1072 Полный список можно посмотреть с помощью команды |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1073 “<command>openssl ciphers</command>”. |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1074 </para> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1075 |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1076 </directive> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1077 |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1078 |
1193
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1079 <directive name="uwsgi_ssl_crl"> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1080 <syntax><value>файл</value></syntax> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1081 <default/> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1082 <context>http</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1083 <context>server</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1084 <context>location</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1085 <appeared-in>1.7.0</appeared-in> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1086 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1087 <para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1088 Указывает <value>файл</value> с отозванными сертификатами (CRL) |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1089 в формате PEM, используемыми при <link id="uwsgi_ssl_verify">проверке</link> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1090 сертификата suwsgi-сервера. |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1091 </para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1092 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1093 </directive> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1094 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1095 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1096 <directive name="uwsgi_ssl_name"> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1097 <syntax><value>имя</value></syntax> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1098 <default>имя хоста из uwsgi_pass</default> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1099 <context>http</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1100 <context>server</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1101 <context>location</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1102 <appeared-in>1.7.0</appeared-in> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1103 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1104 <para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1105 Позволяет переопределить имя сервера, используемое при |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1106 <link id="uwsgi_ssl_verify">проверке</link> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1107 сертификата suwsgi-сервера, а также для |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1108 <link id="uwsgi_ssl_server_name">передачи его через SNI</link> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1109 при установлении соединения с suwsgi-сервером. |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1110 </para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1111 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1112 <para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1113 По умолчанию используется имя хоста из <link id="uwsgi_pass"/>. |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1114 </para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1115 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1116 </directive> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1117 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1118 |
1192
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1119 <directive name="uwsgi_ssl_protocols"> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1120 <syntax> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1121 [<literal>SSLv2</literal>] |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1122 [<literal>SSLv3</literal>] |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1123 [<literal>TLSv1</literal>] |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1124 [<literal>TLSv1.1</literal>] |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1125 [<literal>TLSv1.2</literal>]</syntax> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1126 <default>SSLv3 TLSv1 TLSv1.1 TLSv1.2</default> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1127 <context>http</context> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1128 <context>server</context> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1129 <context>location</context> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1130 <appeared-in>1.5.8</appeared-in> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1131 |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1132 <para> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1133 Разрешает указанные протоколы для запросов к suwsgi-серверу. |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1134 </para> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1135 |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1136 </directive> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1137 |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1138 |
1193
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1139 <directive name="uwsgi_ssl_server_name"> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1140 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1141 <default>off</default> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1142 <context>http</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1143 <context>server</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1144 <context>location</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1145 <appeared-in>1.7.0</appeared-in> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1146 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1147 <para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1148 Разрешает или запрещает передачу имени сервера через |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1149 <link url="http://en.wikipedia.org/wiki/Server_Name_Indication">расширение |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1150 Server Name Indication протокола TLS</link> (SNI, RFC 6066) |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1151 при установлении соединения с suwsgi-сервером. |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1152 </para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1153 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1154 </directive> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1155 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1156 |
1192
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1157 <directive name="uwsgi_ssl_session_reuse"> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1158 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1159 <default>on</default> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1160 <context>http</context> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1161 <context>server</context> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1162 <context>location</context> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1163 <appeared-in>1.5.8</appeared-in> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1164 |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1165 <para> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1166 Определяет, использовать ли повторно SSL-сессии при |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1167 работе с suwsgi-сервером. |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1168 Если в логах появляются ошибки |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1169 “<literal>SSL3_GET_FINISHED:digest check failed</literal>”, |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1170 то можно попробовать выключить |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1171 повторное использование сессий. |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1172 </para> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1173 |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1174 </directive> |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1175 |
b5268820c3f3
Documented "suwsgi" protocol support.
Ruslan Ermilov <ru@nginx.com>
parents:
1191
diff
changeset
|
1176 |
1193
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1177 <directive name="uwsgi_ssl_trusted_certificate"> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1178 <syntax><value>файл</value></syntax> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1179 <default/> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1180 <context>http</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1181 <context>server</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1182 <context>location</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1183 <appeared-in>1.7.0</appeared-in> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1184 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1185 <para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1186 Задаёт <value>файл</value> с доверенными сертификатами CA в формате PEM, |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1187 используемыми при <link id="uwsgi_ssl_verify">проверке</link> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1188 сертификата suwsgi-сервера. |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1189 </para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1190 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1191 </directive> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1192 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1193 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1194 <directive name="uwsgi_ssl_verify"> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1195 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1196 <default>off</default> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1197 <context>http</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1198 <context>server</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1199 <context>location</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1200 <appeared-in>1.7.0</appeared-in> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1201 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1202 <para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1203 Разрешает или запрещает проверку сертификата suwsgi-сервера. |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1204 </para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1205 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1206 </directive> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1207 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1208 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1209 <directive name="uwsgi_ssl_verify_depth"> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1210 <syntax><value>число</value></syntax> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1211 <default>1</default> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1212 <context>http</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1213 <context>server</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1214 <context>location</context> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1215 <appeared-in>1.7.0</appeared-in> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1216 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1217 <para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1218 Устанавливает глубину проверки в цепочке сертификатов suwsgi-сервера. |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1219 </para> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1220 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1221 </directive> |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1222 |
0320929f8544
Documented uwsgi_ssl_verify, uwsgi_ssl_server_name, and friends.
Ruslan Ermilov <ru@nginx.com>
parents:
1192
diff
changeset
|
1223 |
1191
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1224 <directive name="uwsgi_store"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1225 <syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1226 <literal>on</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1227 <literal>off</literal> | |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1228 <value>строка</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1229 <default>off</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1230 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1231 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1232 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1233 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1234 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1235 Разрешает сохранение на диск файлов. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1236 Параметр <literal>on</literal> сохраняет файлы в соответствии с путями, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1237 указанными в директивах |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1238 <link doc="ngx_http_core_module.xml" id="alias"/> или |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1239 <link doc="ngx_http_core_module.xml" id="root"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1240 Параметр <literal>off</literal> запрещает сохранение файлов. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1241 Кроме того, имя файла можно задать явно с помощью строки с переменными: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1242 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1243 uwsgi_store /data/www$original_uri; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1244 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1245 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1246 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1247 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1248 Время изменения файлов выставляется согласно полученному полю |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1249 <header>Last-Modified</header> в заголовке ответа. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1250 Ответ сначала записывается во временный файл, а потом этот файл |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1251 переименовывается. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1252 Начиная с версии 0.8.9, временный файл и постоянное место хранения ответа |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1253 могут располагаться на разных файловых системах. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1254 Однако нужно учитывать, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1255 что в этом случае вместо дешёвой операции переименовывания в пределах |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1256 одной файловой системы файл копируется с одной файловой системы на другую. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1257 Поэтому лучше, если сохраняемые файлы будут находиться на той же файловой |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1258 системе, что и каталог с временными файлами, задаваемый директивой |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1259 <link id="uwsgi_temp_path"/> для данного location. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1260 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1261 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1262 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1263 Директиву можно использовать для создания локальных копий статических |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1264 неизменяемых файлов, например, так: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1265 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1266 location /images/ { |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1267 root /data/www; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1268 error_page 404 = /fetch$uri; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1269 } |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1270 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1271 location /fetch/ { |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1272 internal; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1273 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1274 uwsgi_pass backend:9000; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1275 ... |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1276 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1277 uwsgi_store on; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1278 uwsgi_store_access user:rw group:rw all:r; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1279 uwsgi_temp_path /data/temp; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1280 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1281 alias /data/www/; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1282 } |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1283 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1284 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1285 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1286 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1287 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1288 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1289 <directive name="uwsgi_store_access"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1290 <syntax><value>пользователи</value>:<value>права</value> ...</syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1291 <default>user:rw</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1292 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1293 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1294 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1295 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1296 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1297 Задаёт права доступа для создаваемых файлов и каталогов, например, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1298 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1299 uwsgi_store_access user:rw group:rw all:r; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1300 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1301 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1302 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1303 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1304 Если заданы какие-либо права для <literal>group</literal> или |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1305 <literal>all</literal>, то права для <literal>user</literal> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1306 указывать необязательно: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1307 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1308 uwsgi_store_access group:rw all:r; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1309 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1310 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1311 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1312 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1313 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1314 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1315 <directive name="uwsgi_temp_file_write_size"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1316 <syntax><value>размер</value></syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1317 <default>8k|16k</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1318 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1319 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1320 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1321 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1322 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1323 Ограничивает <value>размер</value> данных, сбрасываемых во временный файл |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1324 за один раз, при включённой буферизации ответов uwsgi-сервера |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1325 во временные файлы. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1326 По умолчанию <value>размер</value> ограничен двумя буферами, заданными |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1327 директивами <link id="uwsgi_buffer_size"/> и <link id="uwsgi_buffers"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1328 Максимальный размер временного файла задаётся директивой |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1329 <link id="uwsgi_max_temp_file_size"/>. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1330 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1331 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1332 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1333 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1334 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1335 <directive name="uwsgi_temp_path"> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1336 <syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1337 <value>путь</value> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1338 [<value>уровень1</value> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1339 [<value>уровень2</value> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1340 [<value>уровень3</value>]]]</syntax> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1341 <default>uwsgi_temp</default> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1342 <context>http</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1343 <context>server</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1344 <context>location</context> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1345 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1346 <para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1347 Задаёт имя каталога для хранения временных файлов с данными, |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1348 полученными от uwsgi-серверов. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1349 В каталоге может использоваться иерархия подкаталогов до трёх уровней. |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1350 Например, при такой конфигурации |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1351 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1352 uwsgi_temp_path /spool/nginx/uwsgi_temp 1 2; |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1353 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1354 временный файл будет следующего вида: |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1355 <example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1356 /spool/nginx/uwsgi_temp/<emphasis>7</emphasis>/<emphasis>45</emphasis>/00000123<emphasis>457</emphasis> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1357 </example> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1358 </para> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1359 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1360 </directive> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1361 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1362 </section> |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1363 |
ea85ba147fe9
Mechanically converted SCGI module docs to uwsgi.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1364 </module> |