Charles
Charles

Reputation: 1108

Reverse proxying HTTP/2 from h2 to h2c - Nginx solution

The scenario is exactly the same on this post. But I need an nginx solution. I am not introducing haproxy or any additional service on top of it.

Upvotes: 2

Views: 3500

Answers (1)

Barry Pollard
Barry Pollard

Reputation: 45885

Nginx does not support back end connections in HTTP/2 and have no intention of bringing this in (for more details see my answer to this question).

So you’re only option is to introduce haproxy or some other TCP proxy rather than a HTTP proxy, some additional service or switch from Nginx to Apache (which does support HTTP/2 back end connections with mod_proxy_http2).

Why do you feel you need HTTP/2 on the back end? As detailed in same answer linked above, most of the HTTP/2 benefits are from having HTTP/2 in the front end. The only real reason I can think to have it on the back end is to support end to end HTTP/2 Server Push but that is really complex to do over multiple HTTP/2 connections and is best left to the last hope to initiate (see here for discussion of this for Apache which is also relevant for other web servers like nginx).

Upvotes: 2

Related Questions