A.2. Setting up HTTP/2 via a reverse proxy server
If upgrading your main web server to support HTTP/2 isn’t possible, or if you want to test HTTP/2 without making any changes in your current setup, you may want to set up a reverse proxy in front of your web server to enable HTTP/2 support. In the following sections, I provide basic instructions for Apache and nginx.
In both these examples, the reverse proxy uses HTTP/1.1 to communicate with the backend server. Apache allows the use of HTTP/2 via the mod_proxy_http2 module. At this writing, the module is still marked as experimental,[13] and there are few benefits for proxying backend connections over HTTP/2 at this time (see the “Do you need to speak HTTP/2 all the way through?” sidebar in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access