Home  >  Article  >  Backend Development  >  nginx adds spdy support and tests

nginx adds spdy support and tests

WBOY
WBOYOriginal
2016-08-08 09:29:58976browse

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>

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.

Statement:
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