diff xml/en/docs/http/ngx_http_autoindex_module.xml @ 1374:90922e31756d

Documented the autoindex_format directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 16 Dec 2014 17:22:42 +0300
parents 95c3c3bbf1ce
children 6866a74393e0
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_autoindex_module.xml
+++ b/xml/en/docs/http/ngx_http_autoindex_module.xml
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_autoindex_module"
         link="/en/docs/http/ngx_http_autoindex_module.html"
         lang="en"
-        rev="2">
+        rev="3">
 
 <section id="summary">
 
@@ -64,13 +64,40 @@ Enables or disables the directory listin
 <context>location</context>
 
 <para>
-Specifies whether exact file sizes should be output in the directory listing,
+For the HTML <link id="autoindex_format">format</link>,
+specifies whether exact file sizes should be output in the directory listing,
 or rather rounded to kilobytes, megabytes, and gigabytes.
 </para>
 
 </directive>
 
 
+<directive name="autoindex_format">
+<syntax>
+    <literal>html</literal> |
+    <literal>xml</literal> |
+    <literal>json</literal> |
+    <literal>jsonp</literal></syntax>
+<default>html</default>
+<context>http</context>
+<context>server</context>
+<context>location</context>
+<appeared-in>1.7.9</appeared-in>
+
+<para>
+Sets the format of a directory listing.
+</para>
+
+<para>
+When the JSONP format is used, the name of a callback function is set
+with the <literal>callback</literal> request argument.
+If the argument is missing or has an empty value,
+then the JSON format is used.
+</para>
+
+</directive>
+
+
 <directive name="autoindex_localtime">
 <syntax><literal>on</literal> | <literal>off</literal></syntax>
 <default>off</default>
@@ -79,7 +106,8 @@ or rather rounded to kilobytes, megabyte
 <context>location</context>
 
 <para>
-Specifies whether times in the directory listing should be
+For the HTML <link id="autoindex_format">format</link>,
+specifies whether times in the directory listing should be
 output in the local time zone or UTC.
 </para>