view xml/ru/docs/http/ngx_http_random_index_module.xml @ 2662:e4d370d43176

Linux packages: removed apt-key usage to import gpg keys on Debian/Ubuntu. apt-key is deprecated since 2017 and will be removed after Debian 11 and Ubuntu 22.04. All distributions since at least 2013 support storing trusted keys in /etc/apt/trusted.gpg.d/ instead, so using it should be safe. A special workaround is added for Ubuntu 16.04 shipping gnupg 2.1, which is not compatible with the CLI invocation we use.
author Konstantin Pavlov <thresh@nginx.com>
date Wed, 17 Feb 2021 16:39:40 +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="Модуль ngx_http_random_index_module"
        link="/ru/docs/http/ngx_http_random_index_module.html"
        lang="ru"
        rev="2">

<section id="summary">

<para>
Модуль <literal>ngx_http_random_index_module</literal> обслуживает запросы,
оканчивающиеся слэшом (‘<literal>/</literal>’), и выдаёт случайный
файл в качестве индексного файла каталога.
Модуль выполняется до модуля
<link doc="ngx_http_index_module.xml">ngx_http_index_module</link>.
</para>

<para>
По умолчанию этот модуль не собирается, его сборку необходимо
разрешить с помощью конфигурационного параметра
<literal>--with-http_random_index_module</literal>.
</para>

</section>


<section id="example" name="Пример конфигурации">

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

</section>


<section id="directives" name="Директивы">

<directive name="random_index">
<syntax><literal>on</literal> | <literal>off</literal></syntax>
<default>off</default>
<context>location</context>

<para>
Разрешает или запрещает в содержащем location обработку этим модулем.
</para>

</directive>

</section>

</module>