view xml/en/docs/http/ngx_http_random_index_module.xml @ 271:4c6d2c614d2c

Cleaned up XML tag mess: - all of <parameter> and <code>, and some of <dirname>, <value>, and <command> were replaced by <literal>; - the rest of <dirname> were replaced by links; - <argument> were replaced by <value>; - <value> is now rendered in HTML in italic; - <literal> and <path> can now contain <value>. Cleaned up terminology mess: - directives take "parameters".
author Ruslan Ermilov <ru@nginx.com>
date Fri, 23 Dec 2011 17:29:59 +0000
parents bfe3eff81d04
children 197ac51e7f0e
line wrap: on
line source

<?xml version="1.0"?>

<!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 <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 name="Example Configuration" id="example">

<para>
<example>
    location / {
        random_index on;
    }
</example>
</para>

</section>


<section name="Directives" id="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>