Mercurial > hg > nginx-site
comparison xml/cn/docs/http/ngx_http_autoindex_module.xml @ 720:9934338f83af
Updated the Chinese documentation.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 11 Oct 2012 10:23:05 +0000 |
parents | |
children | ceb8a4e374b7 |
comparison
equal
deleted
inserted
replaced
719:6a37df6078a1 | 720:9934338f83af |
---|---|
1 <?xml version="1.0"?> | |
2 | |
3 <!-- | |
4 Copyright (C) Igor Sysoev | |
5 Copyright (C) Nginx, Inc. | |
6 --> | |
7 | |
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | |
9 | |
10 <module name="Module ngx_http_autoindex_module" | |
11 link="/cn/docs/http/ngx_http_autoindex_module.html" | |
12 lang="cn" | |
13 translator="Weibin Yao" | |
14 rev="1"> | |
15 | |
16 <section id="summary"> | |
17 | |
18 <para> | |
19 <literal>ngx_http_autoindex_module</literal> 模块可以列出目录中的文件。 | |
20 一般当<link doc="ngx_http_index_module.xml">ngx_http_index_module</link>模块找不到默认主页的时候,会把请求转给 <literal>ngx_http_autoindex_module</literal>模块去处理。 | |
21 </para> | |
22 | |
23 </section> | |
24 | |
25 | |
26 <section id="example" name="Example Configuration"> | |
27 | |
28 <para> | |
29 <example> | |
30 location / { | |
31 autoindex on; | |
32 } | |
33 </example> | |
34 </para> | |
35 | |
36 </section> | |
37 | |
38 | |
39 <section id="directives" name="Directives"> | |
40 | |
41 <directive name="autoindex"> | |
42 <syntax><literal>on</literal> | <literal>off</literal></syntax> | |
43 <default>off</default> | |
44 <context>http</context> | |
45 <context>server</context> | |
46 <context>location</context> | |
47 | |
48 <para> | |
49 开启或者关闭列出目录中文件的功能。 | |
50 </para> | |
51 | |
52 </directive> | |
53 | |
54 | |
55 <directive name="autoindex_exact_size"> | |
56 <syntax><literal>on</literal> | <literal>off</literal></syntax> | |
57 <default>on</default> | |
58 <context>http</context> | |
59 <context>server</context> | |
60 <context>location</context> | |
61 | |
62 <para> | |
63 设置目录中列出的文件是显示精确大小,还是对KB,MB,GB进行四舍五入。 | |
64 </para> | |
65 | |
66 </directive> | |
67 | |
68 | |
69 <directive name="autoindex_localtime"> | |
70 <syntax><literal>on</literal> | <literal>off</literal></syntax> | |
71 <default>off</default> | |
72 <context>http</context> | |
73 <context>server</context> | |
74 <context>location</context> | |
75 | |
76 <para> | |
77 设置目录中列出文件的时间是本地时间还是UTC时间。 | |
78 </para> | |
79 | |
80 </directive> | |
81 | |
82 </section> | |
83 | |
84 </module> |