Enable SPDY with NGINX on Centos 6 Servers

The SPDY protocol has been created by Google to load HTTPS pages faster and improving web security.
It will work only when you have running site with SSL.

The test begins: The SPDY NGINX module isn't installed by default, so we have to update NGINX on the server to have it. Yeah before update we can check.

nginx -V


  • So first  let's update Nginx with SPDY plugin.
  • As I am using Centos 6
  • You install the Epel repository by downloading the appropriate RPM package for your system and installing it. 


For other Linux version's Click here

rpm -Uvh nginx-release-centos-6-0.el6.ngx.noarch.rpm


  • To Install Nginx, Open termianl and type in:
yum install nginx


  • Now Nginx is compatiable with spdy module.


  • we got a newer version of NGINX and the required module installed, we can go ahead and enable SPDY on the currentlyrunning domain.

  • Add below content in your configuration file 
vim /etc/nginx/conf.d/
 listen     443 ssl spdy;
 spdy_headers_comp 9;

        ssl_session_cache shared:SSL:20m;
        ssl_session_timeout 10m;

        ssl_prefer_server_ciphers On;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

        add_header Strict-Transport-Security "max-age=31536000";


  • Let's check is it working fine on


By Sushant Chawla

Over the past 11 years I have acquired very good knowledge of:

- Cloud Setup on Amazon, Rackspace with autoscaling, load balancers, etc
- LAMP architecture
- LNMP Architecture
- Apache, Nginx, Lighttpd
- Databases: MySQL and PostgreSQL
- Bash Scripting
- Configuration Management with Puppet
- Monitoring: Nagios, Zabbix, ICINGA
- Mail servers: Sendmail, Postfix, Exim
- Web Accelerators & Caching Setups with Memcache, Varnish & Redis
- Setup and Management of high availability applications clusters
- LDAP, Samba, NFS, FTP, DNS, DHCP, Openfire, Squid Proxy
- Subversion(SVN), GIT
- Control Panels: Plesk, Webmin, cPanel

Apart from Linux, I am a great sports star & regular traveller. I like working out and exploring various places.

Cheers ;-)

1 reply on “Enable SPDY with NGINX on Centos 6 Servers”

Leave a Reply

Your email address will not be published. Required fields are marked *