About Spdy
Excerpted from Http://zh.wikipedia.org/wiki/SPDY
SPDY
Spdy is an application-layer protocol developed by Google based on Transmission Control Protocol (TCP). [1] Google was first introduced in chromium in the Spdy agreement. has been used in Google Chrome to access Google's SSL encryption service.
Spdy is not currently a standard protocol, but Spdy's development team has started to push spdy into a formal standard (now the Internet draft), Google Chrome,mozilla Firefox,opera and the Internet The SPDY protocol is supported by the explorer. The SPDY protocol is similar to HTTP, but is designed to shorten the load time of Web pages and improve security. The SPDY protocol shortens load times by compressing, multiplexing, and prioritizing. SPDY is not an acronym, but simply an abbreviation for "speedy". Spdy is now Google's trademark.
Design
The purpose of design spdy is to reduce the load time of Web pages. With priority and multiplexing, Spdy makes it possible to transfer resources such as Web content and images with only one TCP connection. TLS encryption is widely used in spdy, and the transfer content is also compressed in gzip or deflate format (unlike HTTP, HTTP headers are not compressed). In addition, in addition to HTTP-like Web servers passively waiting for the browser to initiate requests, Spdy Web server can also actively push content.
The relationship to HTTP
Spdy is not used to replace HTTP, it simply modifies the way HTTP requests and responses are transmitted over the network, which means that only one spdy transport layer is added, and all existing service-side applications do not have to make any modifications. When transmitted using SPDY, HTTP requests are processed, markup simplified, and compressed. For example, each SPDY endpoint keeps track of each HTTP header that has been sent in the previous request, thus avoiding repeated sending of the unchanged head. The data portion of a message that has not yet been sent will be sent after it is compressed.
1, install Spdy
Download the Nginx+lua module.
Http://openresty.org/cn/index.html
The latest version is ngx_openresty-1.7.7.2.tar.gz.
Installation commands
./configure–with-http_spdy_module
2, configuration
server { listen 443 ssl spdy; ssl_certificate server.crt; ssl_certificate_key server.key; ...}
Very simple.
3, test
Use Chrome to view
Or use the Spdy test site:
4, about Spdy
If Chrome or Firefox supports Spdy, follow the Spdy method or use http1.1.
About Spdy Performance Optimization reference:
Http://www.infoq.com/cn/news/2015/02/https-spdy-http2-comparison#rd
Nginx+lua Support for Spdy:
http://wiki.nginx.org/HttpLuaModule#SPDY_Mode_Not_Fully_Supported
Complex installation, can be referenced below. Install using Google native Spdy.
Http://edge2.blogspot.com/2014/05/install-nginx-naxsi-modpagespeed-spdy.html
Another detailed introduction to Spdy
http://www.geekpark.net/topics/158198
The above describes the Nginx Lua installation Spdy, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.