HttpRandomIndexModule
(Difference between revisions)
m (→random_index: clarification) |
(→random_index) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 11: | Line 11: | ||
= Directives = | = Directives = | ||
== random_index == | == random_index == | ||
| − | + | <include wikitext nopre src="http://wiki.nginx.org/nginx.org/http/ngx_http_random_index_module/random_index.txt" /> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
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. | 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 = | = References = | ||
| − | [http:// | + | [http://nginx.org/en/docs/http/ngx_http_random_index_module.html Original Documentation] |
Latest revision as of 19:45, 2 May 2012
Contents |
[edit] Synopsis
Pick a random file from a directory and use it as the index file.
Example:
location / { random_index on; }
[edit] Directives
[edit] random_index
| Syntax: |
random_index on | off |
| Default: | off |
| Context: | location |
| Reference: | random_index |
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.










