view xml/ru/docs/http/ngx_http_mirror_module.xml @ 2769:16f6fa718be2

Updated TLSv1.3 support notes. Previous notes described some early development snapshot of OpenSSL 1.1.1 with disabled TLSv1.3 by default. It was then enabled in the first alpha. Further, the updated text covers later major releases such as OpenSSL 3.0.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 30 Sep 2021 16:29:20 +0300
parents eeed494bba51
children
line wrap: on
line source

<?xml version="1.0"?>

<!--
  Copyright (C) Nginx, Inc.
  -->

<!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">

<module name="Модуль ngx_http_mirror_module"
        link="/ru/docs/http/ngx_http_mirror_module.html"
        lang="ru"
        rev="4">

<section id="summary">

<para>
Модуль <literal>ngx_http_mirror_module</literal> (1.13.4) позволяет
зеркалировать исходный запрос
при помощи создания фоновых зеркалирующих подзапросов.
Ответы на зеркалирующие подзапросы игнорируются.
</para>

</section>


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

<para>
<example>
location / {
    mirror /mirror;
    proxy_pass http://backend;
}

location = /mirror {
    internal;
    proxy_pass http://test_backend$request_uri;
}
</example>
</para>

</section>


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

<directive name="mirror">
<syntax><value>uri</value> | <literal>off</literal></syntax>
<default>off</default>
<context>http</context>
<context>server</context>
<context>location</context>

<para>
Задаёт URI, на который будет зеркалироваться исходный запрос.
На одном уровне конфигурации может быть задано несколько зеркал.
</para>

</directive>


<directive name="mirror_request_body">
<syntax><literal>on</literal> | <literal>off</literal></syntax>
<default>on</default>
<context>http</context>
<context>server</context>
<context>location</context>

<para>
Определяет, зеркалировать ли тело запроса клиента.
Если включено, то тело запроса клиента будет прочитано
перед созданием зеркалирующих подзапросов.
В этом случае небуферизованное проксирование тела запроса клиента,
задаваемое директивами
<link doc="ngx_http_proxy_module.xml" id="proxy_request_buffering"/>,
<link doc="ngx_http_fastcgi_module.xml" id="fastcgi_request_buffering"/>,
<link doc="ngx_http_scgi_module.xml" id="scgi_request_buffering"/>
и
<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_request_buffering"/>,
будет отключено.
<example>
location / {
    mirror /mirror;
    mirror_request_body off;
    proxy_pass http://backend;
}

location = /mirror {
    internal;
    proxy_pass http://log_backend;
    proxy_pass_request_body off;
    proxy_set_header Content-Length "";
    proxy_set_header X-Original-URI $request_uri;
}
</example>
</para>

</directive>

</section>

</module>