简体   繁体   English

我是否需要使用HTTP2安装/启用ALPN? 对于apache2 ubuntu 16.04怎么做?

[英]Do I need to install/enable ALPN with HTTP2? How to do it for apache2 ubuntu 16.04?

I just enabled http2 on my ubuntu 16.04 server. 我刚刚在ubuntu 16.04服务器上启用了http2。 When I ran a test on https://tools.keycdn.com/http2-test it verifies that http2 is supported but also gives a warning that "ALPN is not supported". 当我在https://tools.keycdn.com/http2-test上运行测试时,它会验证是否支持http2,但还会发出“不支持ALPN”的警告。

Di I really need ALPN to take benifits of http2? 我真的需要ALPN来使用http2的好处吗? If yes than how can I install it? 如果可以,该如何安装? I cannot find a way to install/enable/activate ALPN. 我找不到安装/启用/激活ALPN的方法。

Chrome demands ALPN for HTTPS as it has depreciated its predecessor (NPN): https://ma.ttias.be/day-google-chrome-disables-http2-nearly-everyone-may-31st-2016/ Chrome要求其前身(NPN)贬值,因此要求HTTPS使用ALPN: https : //ma.ttias.be/day-google-chrome-disables-http2-nearly-everyone-may-31st-2016/

Other browsers still support HTTP/2 using NPN I believe (for now). 我认为,其他浏览器仍支持使用NPN的HTTP / 2。

To use ALPN you need to compile your webserver with OpenSSL 1.0.2 or above. 要使用ALPN,您需要使用OpenSSL 1.0.2或更高版本编译Web服务器。 According to that link above Ubuntu 16.04 does support this. 根据上面的链接,Ubuntu 16.04确实支持此功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM