Hello,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 2:50 AM, Valentin V. Bartenev <span dir="ltr"><<a href="mailto:vbart@nginx.com" target="_blank">vbart@nginx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Sunday 18 November 2012 11:26:44 eiji-gravion wrote:<br>
> Hello,<br>
><br>
> Is there a way for nginx to advertise the NPN extension without the use of<br>
> SPDY?</div></blockquote><div><br></div><div>I think you can do this fairly easily, mostly using nginx conf and eventually 3rd party modules.</div><div><br></div><div>You could use headers_more[1] to always return the Alternate Protocol headers.</div>
<div><br></div><div>Or this Lua snippet [2] (see ngx_lua module [3]), which will only adverstise SPDY if a client is not already using it.</div><div><br></div><div>Happy hacking,</div><div>Matthieu.</div><div><br></div><div>
<br></div><div>[1] <a href="http://wiki.nginx.org/HttpHeadersMoreModule">http://wiki.nginx.org/HttpHeadersMoreModule</a> </div><div>[2] <a href="https://gist.github.com/4112241">https://gist.github.com/4112241</a></div><div>
[3] <a href="http://wiki.nginx.org/HttpLuaModule">http://wiki.nginx.org/HttpLuaModule</a></div></div></div>