Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_upstream_hc_module.xml @ 2359:d5e576eb7677
Updated docs for the upcoming NGINX Plus release.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 08 Apr 2019 11:45:08 +0300 |
parents | ef22a80a2696 |
children | 52500ccb82c1 |
comparison
equal
deleted
inserted
replaced
2358:ee4eccd811cd | 2359:d5e576eb7677 |
---|---|
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
8 | 8 |
9 <module name="Module ngx_http_upstream_hc_module" | 9 <module name="Module ngx_http_upstream_hc_module" |
10 link="/en/docs/http/ngx_http_upstream_hc_module.html" | 10 link="/en/docs/http/ngx_http_upstream_hc_module.html" |
11 lang="en" | 11 lang="en" |
12 rev="4"> | 12 rev="5"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 The <literal>ngx_http_upstream_hc_module</literal> module | 17 The <literal>ngx_http_upstream_hc_module</literal> module |
288 <tag-desc> | 288 <tag-desc> |
289 body does not match regular expression “<literal>Welcome to nginx!</literal>” | 289 body does not match regular expression “<literal>Welcome to nginx!</literal>” |
290 </tag-desc> | 290 </tag-desc> |
291 | 291 |
292 </list> | 292 </list> |
293 | |
294 <list type="tag"> | |
295 | |
296 <tag-name id="match_require"><literal>require</literal> | |
297 <value>$variable</value> | |
298 <literal>...;</literal></tag-name> | |
299 <tag-desc> | |
300 all specified variables are not empty and not equal to “0” (1.15.9). | |
301 </tag-desc> | |
302 | |
303 </list> | |
293 </para> | 304 </para> |
294 | 305 |
295 <para> | 306 <para> |
296 If several tests are specified, | 307 If several tests are specified, |
297 the response matches only if it matches all tests. | 308 the response matches only if it matches all tests. |
326 status 200-399; | 337 status 200-399; |
327 body !~ "maintenance mode"; | 338 body !~ "maintenance mode"; |
328 } | 339 } |
329 </example> | 340 </example> |
330 | 341 |
342 <example> | |
343 # status is 200 or 204 | |
344 map $upstream_status $good_status { | |
345 200 1; | |
346 204 1; | |
347 } | |
348 | |
349 match server_ok { | |
350 require $good_status; | |
351 } | |
352 </example> | |
353 | |
331 </para> | 354 </para> |
332 | 355 |
333 </directive> | 356 </directive> |
334 | 357 |
335 </section> | 358 </section> |