Mercurial > hg > nginx-site
comparison xml/ru/docs/http/ngx_http_random_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_random_index_module" | |
6 link="/ru/docs/http/ngx_http_random_index_module.html" | |
7 lang="ru"> | |
8 | |
9 <section name="" id="summary"> | |
10 | |
11 <para> | |
12 Модуль ngx_http_random_index_module выдаёт случайный файл в качестве | |
13 индексного файла каталога. Модуль работает до модуля | |
14 <link doc="ngx_http_index_module.xml">ngx_http_index_module</link>. | |
15 По умолчанию модуль не собирается, нужно разрешить его сборку при | |
16 конфигурировании параметром <command>--with-http_random_index_module</command>. | |
17 </para> | |
18 | |
19 </section> | |
20 | |
21 | |
22 <section name="Пример конфигурации" id="example"> | |
23 | |
24 <para> | |
25 <example> | |
26 location / { | |
27 random_index on; | |
28 } | |
29 </example> | |
30 </para> | |
31 | |
32 </section> | |
33 | |
34 | |
35 <section name="Директивы" id="directives"> | |
36 | |
37 <directive name="random_index"> | |
38 <syntax>random_index <value>[on|off]</value></syntax> | |
39 <default>random_index off</default> | |
40 <context>location</context> | |
41 | |
42 <para> | |
43 Директива разрешает или запрещает работу модуля. | |
44 </para> | |
45 | |
46 </directive> | |
47 | |
48 </section> | |
49 | |
50 </module> |