Mercurial > hg > nginx-site
comparison xml/ru/docs/http/ngx_http_core_module.xml @ 2523:2bb06b3fbcc5
Documented the "auth_delay" directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 13 Apr 2020 16:55:23 +0100 |
parents | 9cd5883ac546 |
children | 4f3494d80949 |
comparison
equal
deleted
inserted
replaced
2522:91d725e52633 | 2523:2bb06b3fbcc5 |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Модуль ngx_http_core_module" | 10 <module name="Модуль ngx_http_core_module" |
11 link="/ru/docs/http/ngx_http_core_module.html" | 11 link="/ru/docs/http/ngx_http_core_module.html" |
12 lang="ru" | 12 lang="ru" |
13 rev="89"> | 13 rev="90"> |
14 | 14 |
15 <section id="directives" name="Директивы"> | 15 <section id="directives" name="Директивы"> |
16 | 16 |
17 <directive name="absolute_redirect"> | 17 <directive name="absolute_redirect"> |
18 <syntax><literal>on</literal> | <literal>off</literal></syntax> | 18 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
241 <example> | 241 <example> |
242 location /images/ { | 242 location /images/ { |
243 root /data/w3; | 243 root /data/w3; |
244 } | 244 } |
245 </example> | 245 </example> |
246 </para> | |
247 | |
248 </directive> | |
249 | |
250 | |
251 <directive name="auth_delay"> | |
252 <syntax><value>время</value></syntax> | |
253 <default>0s</default> | |
254 <context>http</context> | |
255 <context>server</context> | |
256 <context>location</context> | |
257 <appeared-in>1.17.10</appeared-in> | |
258 | |
259 <para> | |
260 Задерживает обработку неавторизованных запросов с кодом ответа 401 | |
261 для предотвращения атак по времени в случае ограничения доступа по | |
262 <link doc="ngx_http_auth_basic_module.xml">паролю</link>, по | |
263 <link doc="ngx_http_auth_request_module.xml">результату подзапроса</link> | |
264 или по <link doc="ngx_http_auth_jwt_module.xml">JWT</link>. | |
246 </para> | 265 </para> |
247 | 266 |
248 </directive> | 267 </directive> |
249 | 268 |
250 | 269 |