简体   繁体   English

尝试使用https,Nginx用于ssl终止,并且Varnish正在提供内容。 但是它没有通过http2

[英]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.

相关问题 Magento 2 与 Varnish 和 Nginx 作为 SSL 终止 - 后端服务器正在服务 - Magento 2 with Varnish and Nginx as SSL termination - backend server is serving 使用 SSL 端接配置清漆以在 HTTPS 上服务 - Configure varnish to serve on HTTPS using SSL termination apache + varnish + nginx + ssl + wordpress 将所有 http 流量重定向到 https - apache + varnish + nginx + ssl + wordpress redirect all http traffic to https Magento 2使用Varnish和Nginx作为SSL终止 - 无限重定向 - Magento 2 with Varnish and Nginx as SSL termination - Endless Redirect 通过Varnish / Apache在Wordpress上使用Nginx SSL终止重定向循环 - Redirect loop with Nginx SSL termination via Varnish/Apache On Wordpress 带有 nginx(终止符为 SSL)和清漆缓存的 Magento2 网站 - Magento2 website with nginx(with SSL termination) and varnish cache 在Ubuntu 12.04上具有Nginx SSL终止的Varnish 3.0 [无穷循环问题] - Varnish 3.0 with Nginx SSL Termination on Ubuntu 12.04 [endless loops issue] 使用Nginx终止所有HTTP方法的SSL - SSL Termination with Nginx for all HTTP Methods 使用 ZEA52C36203C5F99C32CE2442D5Z1B1 将 HTTP 重定向到 HTTPS nginx - Redirect HTTP to HTTPS nginx with SSL http2:在nginx中发送请求时SSL读取失败 - http2: SSL read failed while sending req in nginx
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM