Mercurial > hg > nginx-site
diff xml/cn/docs/http/ngx_http_random_index_module.xml @ 792:ceb8a4e374b7
Updated the Chinese documentation.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 25 Dec 2012 06:34:37 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/cn/docs/http/ngx_http_random_index_module.xml Tue Dec 25 06:34:37 2012 +0000 @@ -0,0 +1,62 @@ +<?xml version="1.0"?> + +<!-- + Copyright (C) Igor Sysoev + Copyright (C) Nginx, Inc. + --> + +<!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" + rev="1"> + +<section id="summary"> + +<para> +The module <literal>ngx_http_random_index_module</literal> 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 +<literal>--with-http_random_index_module</literal> +configuration parameter. +</para> + +</section> + + +<section id="example" name="Example Configuration"> + +<para> +<example> +location / { + random_index on; +} +</example> +</para> + +</section> + + +<section id="directives" name="Directives"> + +<directive name="random_index"> +<syntax><literal>on</literal> | <literal>off</literal></syntax> +<default>off</default> +<context>location</context> + +<para> +Enables or disables module processing in a surrounding location. +</para> + +</directive> + +</section> + +</module>