HTTP upstream health-check directives
match directive (HTTP health checks, NGINX Plus)
HTTP context, commercial module. Defines response conditions for a named health check: status, headers and body. Use exact readiness status where appropriate. Nested status, header, body and require tests belong to the block body, not its positional argument list.
Formal Syntax & Structure
nginx syntaxnginx
match name { ... }Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| name | identifier | Name referenced by health_check. Nested tests are block content, not positional arguments. |
Working Example
Example Snippetnginx
match catalog_ready { status 200;}