Advertise NPN without SPDY

Matthieu Tourne matthieu.tourne at gmail.com
Mon Nov 19 17:49:34 UTC 2012


Hello,


On Mon, Nov 19, 2012 at 2:50 AM, Valentin V. Bartenev <vbart at nginx.com>wrote:

> On Sunday 18 November 2012 11:26:44 eiji-gravion wrote:
> > Hello,
> >
> > Is there a way for nginx to advertise the NPN extension without the use
> of
> > SPDY?
>

I think you can do this fairly easily, mostly using nginx conf and
eventually 3rd party modules.

You could use headers_more[1] to always return the Alternate Protocol
headers.

Or this Lua snippet [2] (see ngx_lua module [3]), which will only
adverstise SPDY if a client is not already using it.

Happy hacking,
Matthieu.


[1] http://wiki.nginx.org/HttpHeadersMoreModule
[2] https://gist.github.com/4112241
[3] http://wiki.nginx.org/HttpLuaModule
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121119/52dd8bbb/attachment.html>


More information about the nginx mailing list