HTTP directives

proxy_http_version directive (HTTP)

HTTP, server or location. Introduced in 1.1.4. Default 1.1 since 1.29.7, previously 1.0; 2 since 1.29.4 requires HTTP/2 module. Check build and release.

Formal Syntax & Structure

nginx syntaxnginx
proxy_http_version 1.0 | 1.1 | 2;

Parameters & Attributes

NameTypeDescription
versionenumUpstream HTTP version

Working Example

Example Snippetnginx
proxy_http_version 1.1;
Nginx Reference