nginx adds spdy support and tests

WBOY
Release: 2016-08-08 09:29:58
Original
1009 people have browsed it

Install spdy

nginx supports spdy format starting from 1.5.
http://nginx.org/en/docs/http/ngx_http_spdy_module.html#example

Of course the latest nginx also supports it, which is spdy3.

Add parameters directly when compiling: –with-http_spdy_module. That’s it.

spdy configuration

If spdy is installed successfully, just modify the nginx configuration directly

<code>server {
    listen 443 ssl spdy;

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

Test spdy

Access the interface directly. Using chrome, open chrome://net-internals/#spdy and you can see spdy.
For example:

or use spdy to test the website:
https://spdycheck.org/#google.com

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

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template