comparison xml/ru/docs/http/ngx_http_mirror_module.xml @ 2206:5cacd6fffade

Eliminated some examples of unsafe prefix locations.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 27 Apr 2018 09:59:51 +0300
parents 1fe9f481d8ce
children eeed494bba51
comparison
equal deleted inserted replaced
2205:e325638a6f34 2206:5cacd6fffade
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
8 8
9 <module name="Модуль ngx_http_mirror_module" 9 <module name="Модуль ngx_http_mirror_module"
10 link="/ru/docs/http/ngx_http_mirror_module.html" 10 link="/ru/docs/http/ngx_http_mirror_module.html"
11 lang="ru" 11 lang="ru"
12 rev="2"> 12 rev="3">
13 13
14 <section id="summary"> 14 <section id="summary">
15 15
16 <para> 16 <para>
17 Модуль <literal>ngx_http_mirror_module</literal> (1.13.4) позволяет 17 Модуль <literal>ngx_http_mirror_module</literal> (1.13.4) позволяет
30 location / { 30 location / {
31 mirror /mirror; 31 mirror /mirror;
32 proxy_pass http://backend; 32 proxy_pass http://backend;
33 } 33 }
34 34
35 location /mirror { 35 location = /mirror {
36 internal; 36 internal;
37 proxy_pass http://test_backend$request_uri; 37 proxy_pass http://test_backend$request_uri;
38 } 38 }
39 </example> 39 </example>
40 </para> 40 </para>
83 mirror /mirror; 83 mirror /mirror;
84 mirror_request_body off; 84 mirror_request_body off;
85 proxy_pass http://backend; 85 proxy_pass http://backend;
86 } 86 }
87 87
88 location /mirror { 88 location = /mirror {
89 internal; 89 internal;
90 proxy_pass http://log_backend; 90 proxy_pass http://log_backend;
91 proxy_pass_request_body off; 91 proxy_pass_request_body off;
92 proxy_set_header Content-Length ""; 92 proxy_set_header Content-Length "";
93 proxy_set_header X-Original-URI $request_uri; 93 proxy_set_header X-Original-URI $request_uri;