1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Nginx + SPDY

Discussion in 'Server Configuration and Hosting' started by Shamil, Mar 10, 2013.

  1. Shamil

    Shamil Well-Known Member

    Hi,

    Is anyone using Nginx + SPDY? I've installed it using the latest patch and nginx, however, sites with SPDY enabled are returning HTTP 500.

    Patch from (http://nginx.org/patches/spdy/patch.spdy-67_1.3.14.txt).

    Inspecting the error log, I see memory errors: malloc(18446744073709551615) failed (12: Cannot allocate memory)

    Any ideas?
     
  2. Andy.N

    Andy.N Well-Known Member

  3. Shamil

    Shamil Well-Known Member

    Yep, I've built it about 3 times so far. (that said, I'm only copying objs/nginx across to /usr/sbin/nginx)
     
  4. Andy.N

    Andy.N Well-Known Member

    Stop and restart nginx?
     
  5. Shamil

    Shamil Well-Known Member

    Done that. I've enabled debug to see if I can find otu what's going on.
     
  6. digitalpoint

    digitalpoint Well-Known Member

    I'm also using it live on digitalpoint.com with latest Nginx and SPDY patch... what were your compile options for Nginx?
     
  7. Shamil

    Shamil Well-Known Member

    They were:

    ./configure --with-http_ssl_module --with-http_spdy_module --with-openssl=/root/openssl
     
  8. digitalpoint

    digitalpoint Well-Known Member

    Hmmm... pretty vanilla compile... does it work okay with just normal HTTP and HTTPS?

    This is my compile options (mine's pretty vanilla too, other than just moving locations of stuff around):

    Code:
    ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/usr/log/ngnix/error.log --http-log-path=/usr/log/ngnix/access.log --with-openssl=/home/software_source/openssl-1.0.1e --with-cc-opt="-I /usr/local/ssl/include" --with-ld-opt="-L /usr/local/ssl/lib" --without-http_ssi_module --with-http_ssl_module --with-http_stub_status_module --with-http_spdy_module
     
  9. Shamil

    Shamil Well-Known Member

    Hmm, it is pretty much vanilla. Yep, works fine over normal HTTP/HTTPS. I only noticed the issue when someone in Chrome couldn't get to the site
     
  10. Andy.N

    Andy.N Well-Known Member

    You have some misspelled path name, ngnix instead of nginx
     
    Dinh Thanh likes this.
  11. Shamil

    Shamil Well-Known Member

    Looks like pages which aren't dynamic, i.e html static are fine, dynamic pages and proxied stuff aren't.

    How did you guys install PHP-FPM?
     
  12. Shamil

    Shamil Well-Known Member

  13. p4guru

    p4guru Well-Known Member

  14. Shamil

    Shamil Well-Known Member

    Yep, I'll be donating to nginx.
     
    p4guru likes this.
  15. digitalpoint

    digitalpoint Well-Known Member

    Yeah... I had two different issues that resulted in really quick patches. Their devs are quite fantastic.
     
    Lucas, p4guru and Shamil like this.
  16. Andy.N

    Andy.N Well-Known Member

    nginx 1.3.15 was released today
    It seems like the spdy patch for it is not clean.

    andy@webserver:/usr/src/nginx/nginx-1.3.15$ sudo patch -p1 < patch.spdy.txt
    patching file src/http/ngx_http_request.c
    Hunk #1 FAILED at 10.
    Hunk #2 FAILED at 308.
    Hunk #3 FAILED at 363.
    Hunk #4 FAILED at 377.
    Hunk #5 FAILED at 425.
    Hunk #6 FAILED at 592.
    Hunk #7 FAILED at 620.
    7 out of 7 hunks FAILED -- saving rejects to file src/http/ngx_http_request.c.rej
    patching file src/http/ngx_http_request.c
    Reversed (or previously applied) patch detected! Assume -R? [n]
     
  17. digitalpoint

    digitalpoint Well-Known Member

    From the changelog, looks like maybe the patch isn't needed any longer?
     
    p4guru, Adam Howard and Andy.N like this.
  18. Andy.N

    Andy.N Well-Known Member

    You are probably right, Shawn. They now seem to build into it. I keep doing the patch for the past few versions and got used to it.
     
  19. Andy.N

    Andy.N Well-Known Member

    Confirmed. We no longer need the patch for SPDY from 1.3.15 onward.
     
  20. p4guru

    p4guru Well-Known Member

    yay no more patch !!
     

Share This Page