# How to set up SPDY Protocol over Nginx?

**URL:** <https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035>\
**Category:** NGINX\
**Created:** [March 1, 2013, 9:11am UTC](https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035 "2013-03-01T09:11:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepak-kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@deepak-kumar](https://www.ruby-forum.com/u/deepak-kumar)\
**Post date:** [March 1, 2013, 9:11am UTC](https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035/1 "2013-03-01T09:11:29Z")

</div>

Hi Guys

I am having problem setting up the SPDY protocol for my rails app over  
nginx. Here is the complete detail of the setup on stacjoverflow.

> <https://stackoverflow.com/questions/15152775/how-to-set-up-spdy-protocol-over-nginx>

Posting it here so that it can have a bigger audience.

I can copy paste the entire question here if it in inconvenient to  
follow  
stackoverflow link.

Posted at Nginx Forum:

> **[How to set up SPDY Protocol over Nginx?](https://forum.nginx.org/read.php?2,236756,236756#msg-236756)**
>
> Hi Guys I am having problem setting up the SPDY protocol for my rails app over nginx. Here is the complete detail of the setup on stacjoverflow. http://stackoverflow.com/questions/15152775/how-to-set-up-spdy-protocol-over-nginx Posting it here so...

---

<div class="post-metadata">

**Author:** ![deepak-kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@deepak-kumar](https://www.ruby-forum.com/u/deepak-kumar)\
**Post date:** [March 1, 2013, 10:34am UTC](https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035/2 "2013-03-01T10:34:28Z")

</div>

On Friday 01 March 2013 12:11:15 deepak-kumar wrote:

> I can copy paste the entire question here if it in inconvenient to follow  
> stackoverflow link.

Most likely you are trying to run a different version of nginx, not one  
that  
you have built with spdy.

wbr, Valentin V. Bartenev

–

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.

> **[nginx: donation](http://nginx.org/en/donation.html)**

---

<div class="post-metadata">

**Author:** ![deepak-kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@deepak-kumar](https://www.ruby-forum.com/u/deepak-kumar)\
**Post date:** [March 1, 2013, 12:47pm UTC](https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035/3 "2013-03-01T12:47:04Z")

</div>

On Friday 01 March 2013 13:39:04 deepak-kumar wrote:

> Well thats possible. But Nginx -V gives me correct version and shows that  
> SPDY module is enabled and configured …
> 
> When I do which nginx on terminal it returns /usr/local/sbin/nginx
> 
> Can you tell me how can I check which binary is being used for the app?

How do you start it?

wbr, Valentin V. Bartenev

–

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.

> **[nginx: donation](http://nginx.org/en/donation.html)**

---

<div class="post-metadata">

**Author:** ![deepak-kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@deepak-kumar](https://www.ruby-forum.com/u/deepak-kumar)\
**Post date:** [March 1, 2013, 10:39am UTC](https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035/4 "2013-03-01T10:39:43Z")

</div>

Well thats possible. But Nginx -V gives me correct version and shows  
that  
SPDY module is enabled and configured …

When I do which nginx on terminal it returns /usr/local/sbin/nginx

Can you tell me how can I check which binary is being used for the app?

$ nginx -V

nginx version: nginx/1.3.13  
built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)  
TLS SNI support enabled  
configure arguments: --sbin-path=/usr/local/sbin/nginx  
–prefix=/etc/nginx  
–conf- path=/etc/nginx/nginx.conf  
–error-log-path=/var/log/nginx/error.log  
–http-client-body-temp-path=/var/lib/nginx/body  
–http-fastcgi-temp-path=/var/lib/nginx/fastcgi  
–http-log-path=/var/log/nginx/access.log  
–http-proxy-temp-path=/var/lib/nginx/proxy  
–http-scgi-temp-path=/var/lib/nginx/scgi  
–http-uwsgi-temp-path=/var/lib/nginx/uwsgi  
–lock-path=/var/lock/nginx.lock  
–pid-path=/var/run/nginx.pid --with-debug --with-http\_addition\_module  
–with-http\_dav\_module --with-http\_gzip\_static\_module  
–with-http\_realip\_module --with-http\_stub\_status\_module  
–with-http\_ssl\_module --with-http\_sub\_module --with-http\_xslt\_module  
–with-http\_spdy\_module --with-ipv6 --with-sha1=/usr/include/openssl  
–with-md5=/usr/include/openssl --with-mail --with-mail\_ssl\_module  
–add-module=/software/ngx\_cache\_purge-1.6  
–with-openssl=/software/openssl-1.0.1e

Posted at Nginx Forum:

> **[Re: How to set up SPDY Protocol over Nginx?](https://forum.nginx.org/read.php?2,236756,236763#msg-236763)**
>
> Hi Guys I am having problem setting up the SPDY protocol for my rails app over nginx. Here is the complete detail of the setup on stacjoverflow. http://stackoverflow.com/questions/15152775/how-to-set-up-spdy-protocol-over-nginx Posting it here so...

---

<div class="post-metadata">

**Author:** ![deepak-kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@deepak-kumar](https://www.ruby-forum.com/u/deepak-kumar)\
**Post date:** [March 1, 2013, 1:51pm UTC](https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035/5 "2013-03-01T13:51:55Z")

</div>

Thanks for the hint. I had to change my init.d script.

Modified to  
DAEMON=/usr/local/sbin/nginx

earlier it was #DAEMON=/usr/sbin/nginx

CLOSED.

Posted at Nginx Forum:

> **[Re: How to set up SPDY Protocol over Nginx?](https://forum.nginx.org/read.php?2,236756,236777#msg-236777)**
>
> Hi Guys I am having problem setting up the SPDY protocol for my rails app over nginx. Here is the complete detail of the setup on stacjoverflow. http://stackoverflow.com/questions/15152775/how-to-set-up-spdy-protocol-over-nginx Posting it here so...

---

<div class="post-metadata">

**Author:** ![deepak-kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@deepak-kumar](https://www.ruby-forum.com/u/deepak-kumar)\
**Post date:** [March 1, 2013, 12:57pm UTC](https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035/6 "2013-03-01T12:57:00Z")

</div>

Yeah. I get your point. I ll post my findings here.

Thanks.

Posted at Nginx Forum:

> **[Re: How to set up SPDY Protocol over Nginx?](https://forum.nginx.org/read.php?2,236756,236772#msg-236772)**
>
> Hi Guys I am having problem setting up the SPDY protocol for my rails app over nginx. Here is the complete detail of the setup on stacjoverflow. http://stackoverflow.com/questions/15152775/how-to-set-up-spdy-protocol-over-nginx Posting it here so...
