基于Nginx的HTTP/2

共238个字

nginx version: nginx/1.10.0 (Ubuntu)

built with OpenSSL 1.0.2g  1 Mar 2016

确认Nginx版本已经升级到至少1.9.5版本,并部署好 https 

 

在域名/etc/nginx/sites-enabled/default(默认)中配置

server {
  listen 443 ssl http2 default_server;

#其他配置
}

listen后面增加http2即可

注意:不能混用SPDY和HTTP/2,完成后重启 Nginx 即可

 

 

❤ 喜欢 135

3条回应:“基于Nginx的HTTP/2”

  1. This is very interesting, You are a very skilled blogger.
    I’ve joined your feed and look forward to seeking more of
    your fantastic post. Also, I have shared your site
    in my social networks!

  2. gamefly说道:

    Thanks designed for sharing such a pleasant thinking, paragraph is fastidious, thats why i have
    read it completely

  3. gamefly说道:

    It’s perfect time to make some plans for the longer term and it’s time to be happy.

    I’ve learn this post and if I may I desire to suggest you some fascinating things or tips.

    Maybe you could write next articles relating to this article.
    I wish to read even more issues about it!

发表评论

必填项已用*标注

归档于 Ubuntu