Click here to see your recently viewed pages and most viewed pages.

mod_spdy Installation and Configuration

Installation Tips

mod_spdy is available in binary form as a Debian package for Linux distributions such as Ubuntu, installable with dpkg. It is also available as an RPM package for CentOS or compatible Linux distributions.

You can browse or check out the source code in the open source repository.

Configuring the Module

Note: The location of the configuration file is dependent on the Linux distribution on which mod_spdy is installed.

On Debian/Ubuntu Linux distributions, the directory will be:


On CentOS/Fedora, the directory will be:


The mod_spdy configuration directives should be wrapped inside an IfModule:

<IfModule spdy_module>

Turning the module on and off

Turning OFF mod_spdy

To turn off mod_spdy completely, insert as the top line of spdy.conf:

SpdyEnabled off

Turning ON mod_spdy

To turn mod_spdy ON, insert as the top line of spdy.conf:

SpdyEnabled on

Tuning the module

Changing the size of the thread pool

To tune the size of the thread pool mod_spdy uses for processing concurrent SPDY streams, use the directive:

SpdyMaxThreadsPerProcess n

where n is the number of threads to use on each child process. Note that if you are using a threaded MPM, this thread pool will be shared by all connections on each process. This directive is valid only at the top level (not within a <VirtualHost> directive).

Changing the limit on simultaneous streams

The SPDY protocol allows endpoints to limit the number of simultanoues SPDY streams they are willing to have open at a time on one connection, for example to limit memory consumption. To set the limit used by mod_spdy, use the directive:

SpdyMaxStreamsPerConnection n

where n is the maximum number of SPDY streams (i.e. requests) that can be active at any given time on a single connection. It is recommended to keep this limit reasonably high; the current default value is 100.