Live data from Hacker News

Nginx 1.5.10 released with SPDY 3.1 support

nginx.org

11–20 of 29 posts

Re: Nginx 1.5.10 released with SPDY 3.1 support

#11
post #5
post #3

Nice, Nginx! Anyone know if this version of Nginx comes with SPDY enabled? If so can it be installed with SPDY enabled in binaries through package managers, and if not, should 1.5.10 be compiled using --with-http_ssl_module and --with-http_spdy_module in order to take advantage of this? If someone compiles 1.5.10 without that argument and then one day decides he wants to light up SPDY, does he need to recompile Nginx…

Yes, it works with their official packages, at least. Just updated today. Here is the basic config I'm using with it: listen x.x.x.x:443 default_server deferred spdy; listen [x:x:x:x::x]:443 default_server deferred spdy ipv6only=on; spdy_headers_comp 7; ssl on; ssl_certificate /etc/ssl/private/x.crt; ssl_certificate_key /etc/ssl/private/x.key; ssl_trusted_certificate /etc/ssl/private/x.trust; ssl_protocols TLSv1 TLSv…

"spdy_headers_comp 7;" looks like huge overkill. It provides about 10% better compression ratio than setting 1, but two times slower.

Re: Nginx 1.5.10 released with SPDY 3.1 support

#12
post #11
post #5

Earlier quoted context omitted.

Yes, it works with their official packages, at least. Just updated today. Here is the basic config I'm using with it: listen x.x.x.x:443 default_server deferred spdy; listen [x:x:x:x::x]:443 default_server deferred spdy ipv6only=on; spdy_headers_comp 7; ssl on; ssl_certificate /etc/ssl/private/x.crt; ssl_certificate_key /etc/ssl/private/x.key; ssl_trusted_certificate /etc/ssl/private/x.trust; ssl_protocols TLSv1 TLSv…

"spdy_headers_comp 7;" looks like huge overkill. It provides about 10% better compression ratio than setting 1, but two times slower.

I was wondering why by default it is 0/off. Are there issues with client/browser compatibility?

Re: Nginx 1.5.10 released with SPDY 3.1 support

#13
post #7
post #5

Earlier quoted context omitted.

Yes, it works with their official packages, at least. Just updated today. Here is the basic config I'm using with it: listen x.x.x.x:443 default_server deferred spdy; listen [x:x:x:x::x]:443 default_server deferred spdy ipv6only=on; spdy_headers_comp 7; ssl on; ssl_certificate /etc/ssl/private/x.crt; ssl_certificate_key /etc/ssl/private/x.key; ssl_trusted_certificate /etc/ssl/private/x.trust; ssl_protocols TLSv1 TLSv…

Any specific reason why you went for an STS timeout of 6 months?

SSL Labs test will not give you a A+ rating if it is not set at least that long. HSTS headers should always be set for a long period of time to avoid a client that only rarely connects to a site having a MITM attack occur.

Re: Nginx 1.5.10 released with SPDY 3.1 support

#14
post #11

Earlier quoted context omitted.

"spdy_headers_comp 7;" looks like huge overkill. It provides about 10% better compression ratio than setting 1, but two times slower.

I was wondering why by default it is 0/off. Are there issues with client/browser compatibility?

It's because of CRIME vulnerability.

Re: Nginx 1.5.10 released with SPDY 3.1 support

#15
post #5

Earlier quoted context omitted.

Yes, it works with their official packages, at least. Just updated today. Here is the basic config I'm using with it: listen x.x.x.x:443 default_server deferred spdy; listen [x:x:x:x::x]:443 default_server deferred spdy ipv6only=on; spdy_headers_comp 7; ssl on; ssl_certificate /etc/ssl/private/x.crt; ssl_certificate_key /etc/ssl/private/x.key; ssl_trusted_certificate /etc/ssl/private/x.trust; ssl_protocols TLSv1 TLSv…

What does the following header do? add_header Alternate-Protocol 443:npn-spdy/3; Also, what exactly does deferred do on the listen directive?

This is from the section 3.3.1 of SPDY Protocol - Draft 2 [0]:

"When a server receives a non-SPDY request which could have been served via SPDY, it should append a Alternate-Protocol header into the response stream. Note that it is valid to have multiple Alternate-Protocols headers. The field-value can also be specified as a comma-separated list, as per RFC2616 section 4.2."

And you can read about "deferred" here: https://stackoverflow.com/questions/8449058/what-does-the-de...

[0] - http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-dra...

Re: Nginx 1.5.10 released with SPDY 3.1 support

#18
post #14

Earlier quoted context omitted.

I was wondering why by default it is 0/off. Are there issues with client/browser compatibility?

It's because of CRIME vulnerability.

More information about CRIME. http://en.wikipedia.org/wiki/CRIME_(security_exploit) For now, disabling SPDY header compression is the right approach. Security > Performance.

Re: Nginx 1.5.10 released with SPDY 3.1 support

#19

Earlier quoted context omitted.

What does the following header do? add_header Alternate-Protocol 443:npn-spdy/3; Also, what exactly does deferred do on the listen directive?

This is from the section 3.3.1 of SPDY Protocol - Draft 2 [0]: "When a server receives a non-SPDY request which could have been served via SPDY, it should append a Alternate-Protocol header into the response stream. Note that it is valid to have multiple Alternate-Protocols headers. The field-value can also be specified as a comma-separated list, as per RFC2616 section 4.2." And you can read about "deferred" here: ht…

> And you can read about "deferred" here: https://stackoverflow.com/questions/8449058/what-does-the-de...

Thanks for the link; I'm curious as to the downsides however (the article linked in the article doesn't fully cover them), and a Google search doesn't yield anything concrete (i.e. deferred on vs. off).

Re: Nginx 1.5.10 released with SPDY 3.1 support

#20
post #3

Nice, Nginx! Anyone know if this version of Nginx comes with SPDY enabled? If so can it be installed with SPDY enabled in binaries through package managers, and if not, should 1.5.10 be compiled using --with-http_ssl_module and --with-http_spdy_module in order to take advantage of this? If someone compiles 1.5.10 without that argument and then one day decides he wants to light up SPDY, does he need to recompile Nginx…

> If someone compiles 1.5.10 without that argument and then one day decides he wants to light up SPDY, does he need to recompile Nginx or is there a quicker solution? Thanks!

In Vanilla nginx said user would need to recompile yes. Do note that the make file contains an 'upgrade' target, though, which performs a seamless binary upgrade.

Post reply on HN