HTTP upstream directives
HTTP upstream block
Defines a named backend group for HTTP-related proxy modules. Context: http. No default group. Defining it does not route traffic by itself. Partial configuration; no backend is started.
Formal Syntax & Structure
nginx syntaxnginx
upstream name { ... }Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| name | string | Backend group name |
Working Example
Example Snippetnginx
upstream demo_backend { server 127.0.0.1:18084;}