Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_upstream_module.xml @ 2470:504536999408
Added upstream resolver info to upstream server resolve parameter.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 04 Dec 2019 15:36:40 +0300 |
parents | 98fd810c13e0 |
children | fdfe54a01ea1 |
comparison
equal
deleted
inserted
replaced
2469:98fd810c13e0 | 2470:504536999408 |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_upstream_module" | 10 <module name="Module ngx_http_upstream_module" |
11 link="/en/docs/http/ngx_http_upstream_module.html" | 11 link="/en/docs/http/ngx_http_upstream_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="83"> | 13 rev="84"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_upstream_module</literal> module | 18 The <literal>ngx_http_upstream_module</literal> module |
253 and automatically modifies the upstream configuration | 253 and automatically modifies the upstream configuration |
254 without the need of restarting nginx (1.5.12). | 254 without the need of restarting nginx (1.5.12). |
255 The server group must reside in the <link id="zone">shared memory</link>. | 255 The server group must reside in the <link id="zone">shared memory</link>. |
256 <para> | 256 <para> |
257 In order for this parameter to work, | 257 In order for this parameter to work, |
258 the <link doc="ngx_http_core_module.xml" id="resolver"/> directive | 258 the <literal>resolver</literal> directive |
259 must be specified in the | 259 must be specified in the |
260 <link doc="ngx_http_core_module.xml" id="http"/> block. | 260 <link doc="ngx_http_core_module.xml" id="resolver">http</link> block |
261 Example: | 261 or in the corresponding <link id="resolver">upstream</link> block. |
262 <example> | |
263 http { | |
264 resolver 10.0.0.1; | |
265 | |
266 upstream u { | |
267 zone ...; | |
268 ... | |
269 server example.com resolve; | |
270 } | |
271 } | |
272 </example> | |
273 </para> | 262 </para> |
274 </tag-desc> | 263 </tag-desc> |
275 | 264 |
276 <tag-name id="route"> | 265 <tag-name id="route"> |
277 <literal>route</literal>=<value>string</value> | 266 <literal>route</literal>=<value>string</value> |