comparison xml/ru/docs/http/ngx_http_access_module.xml @ 76:4a4caa566120

Russian documentation import. Changes in module.dtd: <example> now allowed to contain <value> and <emphasis> elements (we need this to show important parts in examples), less strict checking of <directive> syntax (we don't want to fully document some directives, notably deprecated ones). Known issues: 1. <syntax> elements are preserved as is, they will require manual conversion (likely to some not-yet-existed format a la DocBook cmdsynopsis, as currently used one seems to be incomplete); 2. <value> no longer corresponds to replaceable content, and it's use in examples isn't correct; 3. <link doc="document#fragment"> doesn't work with current xslt, either should be supported or changed to <link doc="document" id="fragment">. The following files are intentionally omitted: maillists.xml (support.xml should be used instead), experimental.xml (obsolete), faq.xml (conflicts with existing one, needs discussion). Not yet linked to site.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 11 Oct 2011 12:57:50 +0000
parents
children 1d315ef37215
comparison
equal deleted inserted replaced
75:2bf4cd2787c5 76:4a4caa566120
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
4
5 <module name="Директивы модуля ngx_http_access_module"
6 link="/ru/docs/http/ngx_http_access_module.html"
7 lang="ru">
8
9
10 <section name="" id="summary">
11
12 <para>
13 Модуль ngx_http_access_module позволяет закрыть доступ для определённых
14 IP-адресов клиентов.
15 </para>
16
17 </section>
18
19
20 <section name="Пример конфигурации" id="example">
21
22 <para>
23 <example>
24 location / {
25 deny 192.168.1.1;
26 allow 192.168.1.0/24;
27 allow 10.1.1.0/16;
28 deny all;
29 }
30 </example>
31 </para>
32
33 <para>
34 Правила проверяются в порядке их записи до первого соответствия.
35 В данном примере доступ разрешён только для сетей 10.1.1.0/16
36 и 192.168.1.0/24, кроме адреса 192.168.1.1.
37 Если правил много, то лучше воспользоваться переменными модуля
38 <link doc="ngx_http_geo_module.xml">ngx_http_geo_module</link>.
39 </para>
40
41 </section>
42
43
44 <section name="Директивы" id="directives">
45
46 <directive name="allow">
47 <syntax>allow <value>[адрес|CIDR|all]</value></syntax>
48 <default>нет</default>
49 <context>http, server, location, limit_except</context>
50
51 <para>
52 Директива разрешает доступ для указанной сети или адреса.
53 </para>
54
55 </directive>
56
57
58 <directive name="deny">
59 <syntax>deny <value>[адрес|CIDR|all]</value></syntax>
60 <default>нет</default>
61 <context>http, server, location, limit_except</context>
62
63 <para>
64 Директива запрещает доступ для указанной сети или адреса.
65 </para>
66
67 </directive>
68
69 </section>
70
71 </module>