Home Backend Development PHP Tutorial nginx lua install spdy

nginx lua install spdy

Aug 08, 2016 am 09:29 AM
chrome google http nginx

About spdy

Excerpted from http://zh.wikipedia.org/wiki/SPDY

SPDY

SPDY is an application layer protocol based on Transmission Control Protocol (TCP) developed by Google. Google first proposed the SPDY protocol in Chromium [1]. It has been used in the Google Chrome browser to access Google's SSL encryption service.
SPDY is not currently a standard protocol, but the SPDY development team has begun to promote SPDY as a formal standard (now an Internet draft). Google Chrome, Mozilla Firefox, Opera and Internet Explorer all support the SPDY protocol. The SPDY protocol is similar to HTTP, but is designed to shorten the loading time of web pages and improve security. The SPDY protocol reduces load times through compression, multiplexing, and prioritization. SPDY is not an acronym, it is simply an abbreviation for "speedy". SPDY is now a trademark of Google.

Design

The purpose of designing SPDY is to reduce the loading time of web pages. Through priority and multiplexing, SPDY only needs to establish a TCP connection to transmit web content, images and other resources. TLS encryption is widely used in SPDY, and the transmission content is compressed in gzip or DEFLATE format (unlike HTTP, the HTTP header is not compressed). In addition, in addition to passively waiting for browsers to initiate requests like HTTP web servers, SPDY web servers can also actively push content.

Relationship with HTTP

SPDY is not used to replace HTTP, it only modifies the way HTTP requests and responses are transmitted on the network; this means that only one SPDY transport layer is added, and all existing server applications can No modifications are required. When using SPDY transport, HTTP requests are processed, tokenized, and compressed. For example, each SPDY endpoint will continue to track every HTTP header that has been sent in a previous request to avoid repeatedly sending headers that have not changed. The data part of the message that has not yet been sent will be sent after being 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 command
./configure –with-http_spdy_module

2, configuration

<code>server {
    listen 443 ssl spdy;

    ssl_certificate server.crt;
    ssl_certificate_key server.key;
    ...
}</code>
Copy after login

is very simple.

3, test

use chrome to view

Or use spdy to test the website:

4, about spdy

If chrome or firefox supports spdy, use spdy to accelerate, otherwise use http1.1.
Reference about spdy performance optimization:
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
For complex installation, please refer to the following. Use Google's native spdy installation.
http://edge2.blogspot.com/2014/05/install-nginx-naxsi-modpagespeed-spdy.html
Another detailed introduction about spdy
http://www.geekpark.net/topics/158198

The above introduces nginx lua installation spdy, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Google Tensor G4 of Pixel 9 Pro XL lags behind Tensor G2 in Genshin Impact Google Tensor G4 of Pixel 9 Pro XL lags behind Tensor G2 in Genshin Impact Aug 24, 2024 am 06:43 AM

Google recently responded to the performance concerns about the Tensor G4 of the Pixel 9 line. The company said that the SoC wasn't designed to beat benchmarks. Instead, the team focused on making it perform well in the areas where Google wants the c

Google Pixel 9 Pro XL gets tested with desktop mode Google Pixel 9 Pro XL gets tested with desktop mode Aug 29, 2024 pm 01:09 PM

Google has introduced DisplayPort Alternate Mode with the Pixel 8 series, and it's present on the newly launched Pixel 9 lineup. While it's mainly there to let you mirror the smartphone display with a connected screen, you can also use it for desktop

Google opens AI Test Kitchen & Imagen 3 to most users Google opens AI Test Kitchen & Imagen 3 to most users Sep 12, 2024 pm 12:17 PM

Google's AI Test Kitchen, which includes a suite of AI design tools for users to play with, has now opened up to users in well over 100 countries worldwide. This move marks the first time that many around the world will be able to use Imagen 3, Googl

Google Pixel 9 Pro XL ranks 2nd in DxOMark\'s \'Global\' smartphone camera ranking Google Pixel 9 Pro XL ranks 2nd in DxOMark\'s \'Global\' smartphone camera ranking Aug 23, 2024 am 06:42 AM

Google's new Pixel 9 series has introduced a new variant that wasn't present in previous lineups, the Pixel 9 Pro XL. It is essentially identical to the non-XL variant (pre-order at Amazon), but as the name suggests, it has a larger screen. The two e

Google confirms Pixel 9 Pro Fold incompatibility with official wireless charging accessories thanks to curious design Google confirms Pixel 9 Pro Fold incompatibility with official wireless charging accessories thanks to curious design Sep 01, 2024 am 06:31 AM

The Pixel 9 Pro Fold is akin to a volte-face for Google's nascent foldable division. In fact, such are the differences between thePixel 9 Pro Foldand the Pixel Fold that the former has been compared more against the OnePlus Open (curr. $1,399.99 on A

Pixel 9 Pro XL vs iPhone 15 Pro Max camera comparison reveals surprising Google wins in video and zoom performance Pixel 9 Pro XL vs iPhone 15 Pro Max camera comparison reveals surprising Google wins in video and zoom performance Aug 24, 2024 pm 12:32 PM

The Google Pixel 9 Pro and Pro XL are Google's answers to the likes of the Samsung Galaxy S24 Ultra and the Apple iPhone 15 Pro and Pro Max. Daniel Sin on YouTube(watch below) has compared the Google Pixel 9 Pro XL to the iPhone 15 Pro Max with some

First Google Pixel 9a footage shows full redesign with much earlier release also rumoured First Google Pixel 9a footage shows full redesign with much earlier release also rumoured Aug 27, 2024 am 06:35 AM

Hardly any time has passed since Google announced its first Pixel 9 series smartphones. In fact, it has only just started shipping the Pixel 9, Pixel 9 Pro and Pixel 9 Pro XL (curr. $1,099 on Amazon). By contrast, Pixel 9 Pro Fold pre-orders will not

Google responds to lackluster benchmark scores of Tensor G4 inside the Pixel 9 line Google responds to lackluster benchmark scores of Tensor G4 inside the Pixel 9 line Aug 20, 2024 pm 09:49 PM

From the get-go, the Google Pixel series was never about beating the top-performing competitors in performance benchmarks. The case for the Google Pixel 9 lineup isn't much different, as the early benchmark results show that the Tensor G4 is quite be

See all articles