FAQ

Page Discussion History

Difference between revisions of "HttpRandomIndexModule"

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

Revision as of 15:56, 21 April 2012

Contents

Synopsis

Pick a random file from a directory and use it as the index file.

Example:

Directives

random_index

syntax: random_index [on|off]

default: off

context: location

When enabled will scan the directory for files on each request, and chose a randomly picked file instead of the usual index.html to use as the index file. Only plain-text files not starting with a dot will be considered.

References

Original Documentation