Enabling SPDY

Mr. Jinx

Verified User
Joined
May 5, 2006
Messages
61
Hello,

I have compiled NGINX with the SPDY module on my server. Now I need to adjust some configs, but what would be the right way to do this?

I added SPDY in "/usr/local/directadmin/data/templates/nginx_server_secure.conf":
Code:
listen |IP|:|PORT_443| ssl spdy;
|MULTI_IP|
... and ofcourse followed by ./build rewrite_confs

This seems to work fine with IPv4 connections, but I have a multi IP / ipv6 configuration.
What should be change to also allow SPDY for IPv6 connections?

I am using custombuild 2.0 RC7 rev: 991.
 
Many thanks Alex. That was what I was looking for.
In case someone needs this:

First copy the original nginx template to the custom folder. This will keep your modifications after every update:
Code:
mkdir /usr/local/directadmin/data/templates/custom
cp /usr/local/directadmin/data/templates/nginx_server_secure.conf /usr/local/directadmin/data/templates/custom/nginx_server_secure.conf

Edit the new custom "nginx_server_secure_conf" file.
Find:
Code:
        listen |IP|:|PORT_443| ssl;
        |MULTI_IP|
Replace with:
Code:
        listen |IP|:|PORT_443| ssl spdy;
        |$/usr/local/bin/php
<?php
$data = <<<END
|MULTI_IP|
END;
$data = str_replace("ssl;", "ssl spdy;", $data);
echo  $data;
?>
DONE|

(make sure the php part has no spaces or tabs in front)

Rewrite your configs:
/usr/local/directadmin/custombuild/build rewrite_confs
 
Back
Top