view xml/en/docs/http/ngx_http_random_index_module.xml @ 2060:237b67ef69a6

Improved win32 build instructions. Added "--with-openssl-opt=no-asm" argument which is required since OpenSSL 1.0.2, as OpenSSL started to use assembler by default in 1.0.0 and then broke builds with MASM in OpenSSL 1.0.2 (ticket #1396). While here, added "--with-debug", added missing "--http-scgi-temp-path" and "--http-uwsgi-temp-path", updated OpenSSL to 1.0.2l, switched to slightly more readable one-argument-per-line style in configure example, added indentation to continuation lines, removed useless "--builddir=objs" argument ("objs" is the default), and removed useless "-f objs/Makefile" argument in nmake (nginx generates appropriate Makefile in the current directory).
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 17 Oct 2017 17:57:36 +0300
parents 95c3c3bbf1ce
children
line wrap: on
line source

<?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="2">

<section id="summary">

<para>
The <literal>ngx_http_random_index_module</literal> module processes requests
ending with the slash character (‘<literal>/</literal>’) and picks a random
file in a directory to serve as an index file.
The module is processed 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>