This module requires the service of
Caveat: there will be no attempt to consolidate multiple HTTP/1.1 frontend requests (configured to be proxied to the same backend) into HTTP/2 streams belonging to the same HTTP/2 request. Each HTTP/1.1 frontend request will be proxied to the backend using a separate HTTP/2 request (trying to re-use the same TCP connection if possible).
This module relies on libnghttp2 to provide the core http/2 engine.
This module is experimental. Its behaviors, directives, and defaults are subject to more change from release to release relative to other standard modules. Users are encouraged to consult the "CHANGES" file for potential updates.
Do not enable proxying until you have secured your server. Open proxy servers are dangerous both to your network and to the Internet at large.
The examples below demonstrate how to configure HTTP/2 for backend connections for a reverse proxy.
The schemes to configure above in
h2
(or h2c
) protocols are the usual
https
(resp. http
) as expected/used by
the user agent.
%{VARNAME}n
format in
The module does not support the HTTP/2 feature PUSH. Backend servers
that would like to advertise preload resources should send the appropriate
Link
headers.
If available, they may do so using the "103 Early Hints"
intermediate responses as specified in
RFC 8297. This will give
the best performance. If the client is talking HTTP/2 as well, this may
then result in a PUSH from Apache to the client or just in forwarding
the 103 response.