Mercurial > hg > nginx-site
comparison xml/ru/docs/http/ngx_http_rewrite_module.xml @ 102:c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Specifying <default> is made non-optional.
Visible changes:
- "types" and "proxy_set_header" get proper defaults (not yet displayed
nicely);
- "fastcgi_hide_header", "fastcgi_ignore_headers", "fastcgi_pass_header",
"proxy_hide_header", "proxy_ignore_headers", and "proxy_pass_header"
now have their (empty) defaults documented;
- mentions of "fastcgi_redirect_errors" and "proxy_redirect_errors" which
are long unsupported were removed.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 19 Oct 2011 05:15:24 +0000 |
parents | 1d315ef37215 |
children | 56457a474903 |
comparison
equal
deleted
inserted
replaced
101:b8fd014ec712 | 102:c76a257f3fd4 |
---|---|
25 | 25 |
26 | 26 |
27 <section name="Директивы" id="directives"> | 27 <section name="Директивы" id="directives"> |
28 | 28 |
29 <directive name="break"> | 29 <directive name="break"> |
30 <syntax>break</syntax> | 30 <syntax/> |
31 <default/> | 31 <default/> |
32 <context>server, location, if</context> | 32 <context>server, location, if</context> |
33 | 33 |
34 <para> | 34 <para> |
35 Директива завершает обработку текущего набора директив | 35 Директива завершает обработку текущего набора директив |
48 | 48 |
49 </directive> | 49 </directive> |
50 | 50 |
51 | 51 |
52 <directive name="if"> | 52 <directive name="if"> |
53 <syntax>if (<value>условие</value>) { ... }</syntax> | 53 <syntax>(<value>условие</value>) { ... }</syntax> |
54 <default/> | 54 <default/> |
55 <context>server, location</context> | 55 <context>server, location</context> |
56 | 56 |
57 <para> | 57 <para> |
58 Директива if проверяет истинность условия, если оно истинно, | 58 Директива if проверяет истинность условия, если оно истинно, |
134 | 134 |
135 </directive> | 135 </directive> |
136 | 136 |
137 | 137 |
138 <directive name="return"> | 138 <directive name="return"> |
139 <syntax>return <value>код</value></syntax> | 139 <syntax><value>код</value></syntax> |
140 <default/> | 140 <default/> |
141 <context>server, location, if</context> | 141 <context>server, location, if</context> |
142 | 142 |
143 <para> | 143 <para> |
144 Директива return завершает исполнение кода и возвращает клиенту | 144 Директива return завершает исполнение кода и возвращает клиенту |
150 | 150 |
151 </directive> | 151 </directive> |
152 | 152 |
153 | 153 |
154 <directive name="rewrite"> | 154 <directive name="rewrite"> |
155 <syntax>rewrite <value>regex</value> <value>замена</value> | 155 <syntax><value>regex</value> <value>замена</value> |
156 <value>флаг</value> | 156 <value>флаг</value> |
157 </syntax> | 157 </syntax> |
158 <default/> | 158 <default/> |
159 <context>server, location, if</context> | 159 <context>server, location, if</context> |
160 | 160 |
233 | 233 |
234 </directive> | 234 </directive> |
235 | 235 |
236 | 236 |
237 <directive name="set"> | 237 <directive name="set"> |
238 <syntax>set <value>переменная</value> <value>значение</value> | 238 <syntax><value>переменная</value> <value>значение</value> |
239 </syntax> | 239 </syntax> |
240 <default/> | 240 <default/> |
241 <context>server, location, if</context> | 241 <context>server, location, if</context> |
242 | 242 |
243 <para> | 243 <para> |
247 | 247 |
248 </directive> | 248 </directive> |
249 | 249 |
250 | 250 |
251 <directive name="uninitialized_variable_warn"> | 251 <directive name="uninitialized_variable_warn"> |
252 <syntax>uninitialized_variable_warn <value>on|off</value></syntax> | 252 <syntax><value>on|off</value></syntax> |
253 <default>uninitialized_variable_warn on</default> | 253 <default>on</default> |
254 <context>http, server, location, if</context> | 254 <context>http, server, location, if</context> |
255 | 255 |
256 <para> | 256 <para> |
257 Директива определяет, нужно ли писать в лог предупреждение | 257 Директива определяет, нужно ли писать в лог предупреждение |
258 о неинициализированной переменной. | 258 о неинициализированной переменной. |