Nginx (tengine) enables SPDY supported configuration methods _nginx

Source: Internet
Author: User
Tags nginx server ssl certificate

about what SPDY is, you can view this article in the Geek Park SPDY what is it? How to deploy SPDY

Although Spdy is not currently a standard protocol, Google Chrome,chromium,mozilla Firefox,opera,ie11 has supported the SPDY protocol. Spdy can shorten the loading time of the Web page, so that your pages will be more quickly displayed in front of users , there is a need to deploy spdy in this respect alone.

Spdy enforces the use of the SSL transport protocol, which requires that we must have an SSL certificate. There is no shortage of free lunches on the Internet, and we can use STARTSSL for a free one-year SSL certificate.

Then modify the nginx.conf settings:

Copy Code code as follows:

server {
Listen 443 SSL spdy;
server_name jb51.net www.jb51.net;

Ssl_certificate SSL.CRT;
Ssl_certificate_key Ssl.key;
#此处省略N个字符 ...
}

Then restart the Nginx service,

Copy Code code as follows:

sudo service nginx restart

If you have not added Spdy support before installing Nginx, you will be prompted to enable the Spdy required Ngx_http_spdy_module module.

Recompile installation Nginx and add –with-http_spdy_module:

Copy Code code as follows:

#./configure--prefix=/usr/local/nginx-1.4.4 \
--with-http_ssl_module \
--with-http_spdy_module \
--with-http_stub_status_module \
--with-pcre ...
#.. The other modules you need

Restart the Nginx server again.

How do I check to see if I have supported Spdy? Use this site below:

http://spdycheck.org/#jb51. Net

or open your website first, and then look at the chrome:
chrome://net-internals/#spdy
Check to see if Spdy sessions has your website address.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.