简体   繁体   中英

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. 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".

Di I really need ALPN to take benifits of http2? If yes than how can I install it? I cannot find a way to install/enable/activate 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/

Other browsers still support HTTP/2 using NPN I believe (for now).

To use ALPN you need to compile your webserver with OpenSSL 1.0.2 or above. According to that link above Ubuntu 16.04 does support this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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