SPDY support in nginx

    The nginx developers announced a beta version of the module that supports the protocol SPDY draft 2. The module is now distributed as a patch for the development version of nginx 1.3.x (patch: http://nginx.org/patches/spdy/patch.spdy.txt ).

    So far, the module has a number of limitations (lack of push support from the server, post_action directive, bandwidth limitations, SSL buffer disabled), but it is planned to finalize it in the coming months, remove all restrictions and fully integrate into the nginx main code.

    The SPDY protocol is supported by the Firefox and Chrome browsers.

    To enable SPDY on the server, you need to install the above patch and add the spdy and ssl parameters to the listen directive.

    server {
    listen 443 ssl spdy default_server;

    ssl_certificate server.crt;
    ssl_certificate_key server.key;

    ...
    }


    The default parameters are more or less optimized for typical use, but you can manually change the buffer size for each worker (1 MB by default), the number of simultaneous threads in one connection (100), the size of the thread ID index (2, 4, 8, 16, 32, 64, 128, etc., by default 32), timeout for waiting data from the client (30 s), timeout of inactivity before disconnection (3 min), compression level of headers (from 0 to 9, default 1) , compression window size LZ77 (4 KB).

    Also popular now: