FAQ

Page Discussion History

Difference between revisions of "HttpAutoindexModule"

(autoindex)
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
<!-- page was renamed from NginxDocsEnglishDraftHttpAutoindexModule
 
<!-- page was renamed from NginxDocsEnglishDraftHttpAutoindexModule
 
-->
 
-->
 +
 +
<span style="color:red">WARNING: this article is obsoleted. Please refer to http://nginx.org/en/docs/ for the latest official documentation.</span>
 +
 
= Synopsis =
 
= Synopsis =
  
Line 16: Line 19:
 
= Directives =
 
= Directives =
 
== autoindex ==
 
== autoindex ==
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_autoindex_module/autoindex.txt" />
+
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/http/ngx_http_autoindex_module/autoindex.txt" />
  
 
Enables or disables the automatic directory listing.
 
Enables or disables the automatic directory listing.
  
 
== autoindex_exact_size ==
 
== autoindex_exact_size ==
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_autoindex_module/autoindex_exact_size.txt" />
+
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/http/ngx_http_autoindex_module/autoindex_exact_size.txt" />
  
 
Defines how to represent file sizes in the directory listing  -- either accurately (in bytes), or rounded (KB, MB or GB).
 
Defines how to represent file sizes in the directory listing  -- either accurately (in bytes), or rounded (KB, MB or GB).
  
 
== autoindex_localtime ==
 
== autoindex_localtime ==
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_autoindex_module/autoindex_localtime.txt" />
+
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/http/ngx_http_autoindex_module/autoindex_localtime.txt" />
  
 
Enables showing file times as local time. Default is "off" (GMT time).
 
Enables showing file times as local time. Default is "off" (GMT time).

Revision as of 21:31, 22 August 2013


WARNING: this article is obsoleted. Please refer to http://nginx.org/en/docs/ for the latest official documentation.

Contents

Synopsis

This module provides automatic directory listings.

The request only reaches the ngx_http_autoindex_module when the ngx_http_index_module did not find an index file.

Example configuration

Directives

autoindex

Syntax: autoindex on | off
Default: off
Context: http
server
location
Reference:autoindex


Enables or disables the automatic directory listing.

autoindex_exact_size

Syntax: autoindex_exact_size on | off
Default: on
Context: http
server
location
Reference:autoindex_exact_size


Defines how to represent file sizes in the directory listing -- either accurately (in bytes), or rounded (KB, MB or GB).

autoindex_localtime

Syntax: autoindex_localtime on | off
Default: off
Context: http
server
location
Reference:autoindex_localtime


Enables showing file times as local time. Default is "off" (GMT time).

References

Original Documentation