xin

Directive reference

proxy_http_version

Selects the HTTP version used to an upstream.

Syntaxproxy_http_version 1.0 | 1.1;
Contextshttpserverlocation
Defaultproxy_http_version 1.0;

Behavior

Use 1.1 for upstream keepalive and protocol upgrades, together with the appropriate Connection and Upgrade headers.

Example

proxy_http_version 1.1;

Related directives

proxy_pass · proxy_set_header