[英]Trying use https, Nginx for ssl termination and Varnish is serving the content. But it is not going through http2
I am trying to upgrade to varnish 5.2. 我正在尝试升级到清漆5.2。 I wanted to support htttps,so setup nginx at front end.
我想支持htttps,所以在前端设置nginx。 Now any https (http2) request is terminated and http 1.1 request is reaching varnish instead http2.
现在,任何https(http2)请求都将终止,并且http 1.1请求到达清漆而不是http2。 Http2 feature enabled in varnish.nginx will not support http2 for any upstream requests,but wanted to know any other reverse proxy like hitch will support http2 to upstream to varnish.
在varnish.nginx中启用的Http2功能将不支持任何上游请求的http2,但想知道其他任何反向代理(例如搭便车)将支持Http2到上游来进行清漆。 Any other tweak required to send http2 request to varnish??.
将http2请求发送到清漆所需的任何其他调整??。 Any help greatly appreciated.
任何帮助,不胜感激。
Nginx only supports HTTP/2 for incoming connections and not for proxy pass connections and have no plans to add this . Nginx仅支持HTTP / 2用于传入连接,不支持代理传递连接,也没有计划添加它 。
Apache does support this with mod_proxy_http2 though this is still marked as experimental at the time of writing . Apache确实使用mod_proxy_http2支持此功能,尽管在撰写本文时仍将其标记为试验性的 。
However I'm not sure why you think you need HTTP/2 for varnish? 但是我不确定为什么您认为需要HTTP / 2作为清漆? See my answer to this question for more discussion on this: HTTP2 with node.js behind nginx proxy
请参阅我对此问题的答案,以获取更多有关此问题的讨论: nginx代理后面带有node.js的HTTP2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.