comparison xml/en/docs/http/ngx_http_index_module.xml @ 271:4c6d2c614d2c

Cleaned up XML tag mess: - all of <parameter> and <code>, and some of <dirname>, <value>, and <command> were replaced by <literal>; - the rest of <dirname> were replaced by links; - <argument> were replaced by <value>; - <value> is now rendered in HTML in italic; - <literal> and <path> can now contain <value>. Cleaned up terminology mess: - directives take "parameters".
author Ruslan Ermilov <ru@nginx.com>
date Fri, 23 Dec 2011 17:29:59 +0000
parents bfe3eff81d04
children 197ac51e7f0e
comparison
equal deleted inserted replaced
270:945d7299c26c 271:4c6d2c614d2c
7 lang="en"> 7 lang="en">
8 8
9 <section id="summary"> 9 <section id="summary">
10 10
11 <para> 11 <para>
12 The module <code>ngx_http_index_module</code> processes requests 12 The module <literal>ngx_http_index_module</literal> processes requests
13 ending with the slash character (‘<code>/</code>’). 13 ending with the slash character (‘<literal>/</literal>’).
14 </para> 14 </para>
15 15
16 </section> 16 </section>
17 17
18 18
30 30
31 31
32 <section name="Directives" id="directives"> 32 <section name="Directives" id="directives">
33 33
34 <directive name="index"> 34 <directive name="index">
35 <syntax><argument>file</argument>...</syntax> 35 <syntax><value>file</value> ...</syntax>
36 <default>index.html</default> 36 <default>index.html</default>
37 <context>http</context> 37 <context>http</context>
38 <context>server</context> 38 <context>server</context>
39 <context>location</context> 39 <context>location</context>
40 40
41 <para> 41 <para>
42 Defines files that will be used as an index. 42 Defines files that will be used as an index.
43 The <argument>file</argument> name can contain variables. 43 The <value>file</value> name can contain variables.
44 Files are checked in the specified order. 44 Files are checked in the specified order.
45 The last element of the list can be a file with an absolute path. 45 The last element of the list can be a file with an absolute path.
46 Example: 46 Example:
47 <example> 47 <example>
48 index index.$geo.html index.0.html /index.html; 48 index index.$geo.html index.0.html /index.html;
60 60
61 location / { 61 location / {
62 ... 62 ...
63 } 63 }
64 </example> 64 </example>
65 a request of “<code>/</code>” will actually be processed in the 65 a request of “<literal>/</literal>” will actually be processed in the
66 second location as “<code>/index.html</code>”. 66 second location as “<literal>/index.html</literal>”.
67 </para> 67 </para>
68 68
69 </directive> 69 </directive>
70 70
71 </section> 71 </section>