FAQ

Page Discussion History

Difference between revisions of "HttpAutoindexModule"

(Directives)
 
m (References: Update link to the original documentation)
Line 34: Line 34:
  
 
= References =
 
= References =
[http://sysoev.ru/nginx/docs/http/ngx_http_autoindex_module.html Original Documentation]
+
[http://nginx.org/en/docs/http/ngx_http_autoindex_module.html Original Documentation]

Revision as of 15:18, 21 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

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

syntax: autoindex_exact_size [ on | off ]

default: autoindex_exact_size on

context: http, server, location

variables: no


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: autoindex_localtime off

context: http, server, location

variables: no


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

References

Original Documentation