comparison xml/en/docs/http/ngx_http_random_index_module.xml @ 153:317ac898ba50

Initial translation of the "ngx_http_index_module" and "ngx_http_random_index_module".
author Ruslan Ermilov <ru@nginx.com>
date Wed, 26 Oct 2011 08:37:48 +0000
parents
children bfe3eff81d04
comparison
equal deleted inserted replaced
152:5a35535f7cdf 153:317ac898ba50
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
4
5 <module name="Module ngx_http_random_index_module"
6 link="/en/docs/http/ngx_http_random_index_module.html"
7 lang="en">
8
9 <section id="summary">
10
11 <para>
12 The module <code>ngx_http_random_index_module</code> picks a random
13 file in a directory as an index file.
14 It works before the
15 <link doc="ngx_http_index_module.xml">ngx_http_index_module</link>
16 module.
17 </para>
18
19 <para>
20 This module is not built by default, it should be enabled with the
21 <code>--with-http_random_index_module</code>
22 configuration parameter.
23 </para>
24
25 </section>
26
27
28 <section name="Example Configuration" id="example">
29
30 <para>
31 <example>
32 location / {
33 random_index on;
34 }
35 </example>
36 </para>
37
38 </section>
39
40
41 <section name="Directives" id="directives">
42
43 <directive name="random_index">
44 <syntax><value>on</value> | <value>off</value></syntax>
45 <default>off</default>
46 <context>location</context>
47
48 <para>
49 Enables or disables module processing in a surrounding location.
50 </para>
51
52 </directive>
53
54 </section>
55
56 </module>