I have the following infrastructure:
80 -> Varnish -> Backend (NGINX, port 8080) 443 -> NGINX (SSL-Termination with HTTP/2 enabled) -> Varnish -> Backend (NGINX, port 8080)
I know that it is possible to enable
HTTP/2 protocol for frontend connections using the
-p feature=+http2 parameter for Varnish (port 80), but what about the backend connections?
varnishlog -b shows me, that all of the backend communication is performed using
I would be very pleased if someone could tell me what common practice is regarding Varnish and NGINX:
- Is it possible to enable
HTTP/2for the backend connections?
- Does it make any sense to do so regarding performance?
- Does it make sense regarding performance to keep the
-p feature=+http2parameter enabled for the
443 -> NGINX (SSL-Termination with HTTP/2 enabled) -> Varnishcommunication in terms of performance?
Regarding the backend communication (which is not encrypted): I know that
HTTP/2 is bound to TLS encryption, but maybe there is some tweak I haven't heard about, so that's why I think is better to ask in order to be 100% sure. Thanks for your understanding.