comparison xml/en/docs/http/ngx_http_index_module.xml @ 351:a4fa80755eab

Consistently strip initial offset in examples.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 24 Jan 2012 11:01:22 +0000
parents 197ac51e7f0e
children be54c443235a
comparison
equal deleted inserted replaced
350:55c1c4a1748f 351:a4fa80755eab
18 18
19 <section id="example" name="Example Configuration"> 19 <section id="example" name="Example Configuration">
20 20
21 <para> 21 <para>
22 <example> 22 <example>
23 location / { 23 location / {
24 index index.$geo.html index.html; 24 index index.$geo.html index.html;
25 } 25 }
26 </example> 26 </example>
27 </para> 27 </para>
28 28
29 </section> 29 </section>
30 30
43 The <value>file</value> 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;
49 </example> 49 </example>
50 </para> 50 </para>
51 51
52 <para> 52 <para>
53 It should be noted that when using an index file, an internal redirect 53 It should be noted that when using an index file, an internal redirect
54 is made, and request can be processed in a different location. 54 is made, and request can be processed in a different location.
55 For example, with the following configuration: 55 For example, with the following configuration:
56 <example> 56 <example>
57 location = / { 57 location = / {
58 index index.html; 58 index index.html;
59 } 59 }
60 60
61 location / { 61 location / {
62 ... 62 ...
63 } 63 }
64 </example> 64 </example>
65 a request of “<literal>/</literal>” will actually be processed in the 65 a request of “<literal>/</literal>” will actually be processed in the
66 second location as “<literal>/index.html</literal>”. 66 second location as “<literal>/index.html</literal>”.
67 </para> 67 </para>
68 68