Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_index_module.xml @ 966:95c3c3bbf1ce
Text review.
author | Egor Nikitin <yegor.nikitin@gmail.com> |
---|---|
date | Wed, 14 Aug 2013 12:03:41 +0400 |
parents | 0422511d9bee |
children |
comparison
equal
deleted
inserted
replaced
965:fadccc156188 | 966:95c3c3bbf1ce |
---|---|
13 rev="2"> | 13 rev="2"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The module <literal>ngx_http_index_module</literal> processes requests | 18 The <literal>ngx_http_index_module</literal> module processes requests |
19 ending with the slash character (‘<literal>/</literal>’). | 19 ending with the slash character (‘<literal>/</literal>’). |
20 Such requests can also be processed by | 20 Such requests can also be processed by the |
21 <link doc="ngx_http_autoindex_module.xml">ngx_http_autoindex_module</link> | 21 <link doc="ngx_http_autoindex_module.xml">ngx_http_autoindex_module</link> |
22 and | 22 and |
23 <link doc="ngx_http_random_index_module.xml">ngx_http_random_index_module</link> | 23 <link doc="ngx_http_random_index_module.xml">ngx_http_random_index_module</link> |
24 modules. | 24 modules. |
25 </para> | 25 </para> |
59 index index.$geo.html index.0.html /index.html; | 59 index index.$geo.html index.0.html /index.html; |
60 </example> | 60 </example> |
61 </para> | 61 </para> |
62 | 62 |
63 <para> | 63 <para> |
64 It should be noted that when using an index file, an internal redirect | 64 It should be noted that using an index file causes an internal redirect, |
65 is made, and request can be processed in a different location. | 65 and the request can be processed in a different location. |
66 For example, with the following configuration: | 66 For example, with the following configuration: |
67 <example> | 67 <example> |
68 location = / { | 68 location = / { |
69 index index.html; | 69 index index.html; |
70 } | 70 } |
71 | 71 |
72 location / { | 72 location / { |
73 ... | 73 ... |
74 } | 74 } |
75 </example> | 75 </example> |
76 a request of “<literal>/</literal>” will actually be processed in the | 76 a “<literal>/</literal>” request will actually be processed in the |
77 second location as “<literal>/index.html</literal>”. | 77 second location as “<literal>/index.html</literal>”. |
78 </para> | 78 </para> |
79 | 79 |
80 </directive> | 80 </directive> |
81 | 81 |