FAQ

Page Discussion History

Difference between revisions of "HttpAutoindexModule"

m (References: Update link to the original documentation)
(Directives)
Line 16: Line 16:
 
= Directives =
 
= Directives =
 
== autoindex ==
 
== autoindex ==
 +
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_autoindex_module/autoindex.txt" />
  
 
{{Directive|name=autoindex|args=[ on {{!}} off ]|default=off|context=http, server, location|vars=no|phase=content}}
 
{{Directive|name=autoindex|args=[ on {{!}} off ]|default=off|context=http, server, location|vars=no|phase=content}}
Line 22: Line 23:
  
 
== autoindex_exact_size ==
 
== autoindex_exact_size ==
 
+
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_autoindex_module/autoindex_exact_size.txt" />
{{Directive|name=autoindex_exact_size|args=[ on {{!}} off ]|default=on|context=http, server, location|vars=no}}
+
  
 
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" />
{{Directive|name=autoindex_localtime|args=[ on {{!}} off ]|default=off|context=http, server, location|vars=no}}
+
  
 
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 06:49, 30 April 2012

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

ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_autoindex_module/autoindex.txt


syntax: autoindex [ on | off ]

default: autoindex off

context: http, server, location

variables: no

phase: content


Enables or disables the automatic directory listing.

autoindex_exact_size

ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/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).

autoindex_localtime

ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_autoindex_module/autoindex_localtime.txt

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

References

Original Documentation