Mercurial > hg > nginx-site
view xml/en/docs/http/ngx_http_random_index_module.xml @ 153:317ac898ba50
Initial translation of the "ngx_http_index_module" and
"ngx_http_random_index_module".
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 26 Oct 2011 08:37:48 +0000 |
parents | |
children | bfe3eff81d04 |
line wrap: on
line source
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> <module name="Module ngx_http_random_index_module" link="/en/docs/http/ngx_http_random_index_module.html" lang="en"> <section id="summary"> <para> The module <code>ngx_http_random_index_module</code> picks a random file in a directory as an index file. It works before the <link doc="ngx_http_index_module.xml">ngx_http_index_module</link> module. </para> <para> This module is not built by default, it should be enabled with the <code>--with-http_random_index_module</code> configuration parameter. </para> </section> <section name="Example Configuration" id="example"> <para> <example> location / { random_index on; } </example> </para> </section> <section name="Directives" id="directives"> <directive name="random_index"> <syntax><value>on</value> | <value>off</value></syntax> <default>off</default> <context>location</context> <para> Enables or disables module processing in a surrounding location. </para> </directive> </section> </module>