HTTP directives

proxy_pass_trailers directive (HTTP)

Permit forwarding response trailers from the origin. HTTP/1.1 negotiation and compatible clients are needed for this example. Context: http, server, location. Documented default: off. Version: 1.27.2. OSS documentation; verify build and version. Trailer values are not interpreted by this directive; do not assume they are trusted. Partial configuration for an isolated synthetic lab; not a production policy.

Formal Syntax & Structure

nginx syntaxnginx
proxy_pass_trailers on | off;

Parameters & Attributes

NameTypeDescription
stateon | offEnable or disable trailer forwarding.

Working Example

Example Snippetnginx
proxy_http_version 1.1;proxy_set_header Connection "TE";proxy_set_header TE trailers;proxy_pass_trailers on;
Nginx Reference