HttpRandomIndexModule
(Difference between revisions)
m (→random_index: clarification) |
m (→References: Update link to the original documentation) |
||
| Line 20: | Line 20: | ||
= References = | = References = | ||
| − | [http:// | + | [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:
location / { random_index on; }
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.










