FAQ

Page Discussion History

Difference between revisions of "HttpRandomIndexModule"

m (References: Update link to the original documentation)
(Directives)
Line 11: Line 11:
 
= Directives =
 
= Directives =
 
== random_index ==
 
== random_index ==
'''syntax:''' ''random_index [on|off] ''
+
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_random_index_module/random_index.txt" />
 
+
'''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.
 
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.

Revision as of 18:18, 30 April 2012

Contents

Synopsis

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

Example:

Directives

random_index

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

References

Original Documentation