# Apache and spdy

mod_spdy is a SPDY module for Apache 2.2 that allows your web server to take advantage of SPDY features like stream multiplexing and header compression.

- mod_spdy dev site
- References: 1 2 3

## Installation

Install the mod_spdyAUR package.

## Configuration

### Configure mod_spdy

In `/etc/httpd/conf/httpd.conf` comment lines

    #LoadModule ssl_module modules/mod_ssl.so

    #Include conf/extra/httpd-ssl.conf

In `/etc/httpd/conf/httpd.conf` add Include

    Include conf/extra/spdy.conf

Create self-signed certificate:

    # cd /etc/httpd/conf
    # openssl req -new -x509 -nodes -newkey rsa:4096 -keyout server.key -out server.crt

Restart apache

    # systemctl restart httpd

### Configure SPDY

In `/etc/httpd/conf/extra/spdy.conf`

### Module Directives

    SpdyEnabled - Enable SPDY support
    SpdyMaxStreamsPerConnection - Maxiumum number of simultaneous SPDY streams per connection
    SpdyMinThreadsPerProcess - Miniumum number of worker threads to spawn per child process
    SpdyMaxThreadsPerProcess - Maxiumum number of worker threads to spawn per child process
    SpdyDebugLoggingVerbosity - Set the verbosity of mod_spdy logging
    SpdyDebugUseSpdyForNonSslConnections - Use SPDY even over non-SSL connections; DO NOT USE IN PRODUCTION

Category:

- Web server