Mercurial > hg > nginx-site
comparison xml/ru/docs/http/ngx_http_index_module.xml @ 76:4a4caa566120
Russian documentation import.
Changes in module.dtd: <example> now allowed to contain <value> and
<emphasis> elements (we need this to show important parts in examples),
less strict checking of <directive> syntax (we don't want to fully
document some directives, notably deprecated ones).
Known issues:
1. <syntax> elements are preserved as is, they will require manual conversion
(likely to some not-yet-existed format a la DocBook cmdsynopsis, as
currently used one seems to be incomplete);
2. <value> no longer corresponds to replaceable content, and it's use in
examples isn't correct;
3. <link doc="document#fragment"> doesn't work with current xslt, either
should be supported or changed to <link doc="document" id="fragment">.
The following files are intentionally omitted: maillists.xml (support.xml
should be used instead), experimental.xml (obsolete), faq.xml (conflicts
with existing one, needs discussion).
Not yet linked to site.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 11 Oct 2011 12:57:50 +0000 |
parents | |
children | c76a257f3fd4 |
comparison
equal
deleted
inserted
replaced
75:2bf4cd2787c5 | 76:4a4caa566120 |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 | |
3 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | |
4 | |
5 <module name="Директивы модуля ngx_http_index_module" | |
6 link="/ru/docs/http/ngx_http_index_module.html" | |
7 lang="ru"> | |
8 | |
9 <section name="" id="summary"> | |
10 | |
11 <para> | |
12 Модуль ngx_http_index_module обслуживает запросы, оканчивающиеся слэшом. | |
13 </para> | |
14 | |
15 </section> | |
16 | |
17 | |
18 <section name="Пример конфигурации" id="example"> | |
19 | |
20 <para> | |
21 <example> | |
22 location / { | |
23 index index.$geo.html index.html; | |
24 } | |
25 </example> | |
26 </para> | |
27 | |
28 </section> | |
29 | |
30 | |
31 <section name="Директивы" id="directives"> | |
32 | |
33 <directive name="index"> | |
34 <syntax>index <value>файл [файл ...]</value> | |
35 </syntax> | |
36 <default>index index.html</default> | |
37 <context>http, server, location</context> | |
38 | |
39 <para> | |
40 Директива определяет файлы, которые будут использоваться в качестве индекса. | |
41 В имени файла можно использовать переменные. | |
42 Наличие файлов проверяется в порядке их перечисления. | |
43 В конце списка может стоять файл с абсолютным путём. | |
44 Пример использования: | |
45 <example> | |
46 index index.$geo.html index.0.html /index.html; | |
47 </example> | |
48 </para> | |
49 | |
50 <para> | |
51 Необходимо иметь ввиду, что при использовании индексного файла делается | |
52 внутренний редирект и запрос может быть обработан уже в другом location'е. | |
53 Например, запрос "/" будет фактически обработан во втором location'е | |
54 как "/index.html" в такой конфигурации: | |
55 <example> | |
56 location = / { | |
57 index index.html; | |
58 } | |
59 | |
60 location / { | |
61 ... | |
62 } | |
63 </example> | |
64 </para> | |
65 | |
66 </directive> | |
67 | |
68 </section> | |
69 | |
70 </module> |