# Advertise NPN without SPDY

**URL:** <https://www.ruby-forum.com/t/advertise-npn-without-spdy/224591>\
**Category:** NGINX\
**Created:** [November 18, 2012, 8:27am UTC](https://www.ruby-forum.com/t/advertise-npn-without-spdy/224591 "2012-11-18T08:27:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [November 18, 2012, 8:27am UTC](https://www.ruby-forum.com/t/advertise-npn-without-spdy/224591/1 "2012-11-18T08:27:16Z")

</div>

Hello,

Is there a way for nginx to advertise the NPN extension without the use  
of  
SPDY?

I’m asking because Chrome disables SSL False Start by default, unless  
the  
NPN extension is advertised, and I don’t want to use SPDY right now.

Thanks

Posted at Nginx Forum:

> **[Advertise NPN without SPDY](https://forum.nginx.org/read.php?2,232960,232960#msg-232960)**
>
> Hello, Is there a way for nginx to advertise the NPN extension without the use of SPDY? I'm asking because Chrome disables SSL False Start by default, unless the NPN extension is advertised, and I don't want to use SPDY right now. Thanks

---

<div class="post-metadata">

**Author:** ![eiji-gravion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/13edae/32.png) [@eiji-gravion](https://www.ruby-forum.com/u/eiji-gravion)\
**Post date:** [November 19, 2012, 11:51am UTC](https://www.ruby-forum.com/t/advertise-npn-without-spdy/224591/2 "2012-11-19T11:51:24Z")

</div>

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?

Currently no, there is not.

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:** ![eiji-gravion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/13edae/32.png) [@eiji-gravion](https://www.ruby-forum.com/u/eiji-gravion)\
**Post date:** [November 19, 2012, 6:50pm UTC](https://www.ruby-forum.com/t/advertise-npn-without-spdy/224591/3 "2012-11-19T18:50:38Z")

</div>

Hello,

On Mon, Nov 19, 2012 at 2:50 AM, Valentin V. Bartenev  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)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] [GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](http://wiki.nginx.org/HttpHeadersMoreModule)  
[2] [Use Alternate-Protocol header to advertise SPDY to clients not using it already. · GitHub](https://gist.github.com/4112241)  
[3] [GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](http://wiki.nginx.org/HttpLuaModule)

---

<div class="post-metadata">

**Author:** ![eiji-gravion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/13edae/32.png) [@eiji-gravion](https://www.ruby-forum.com/u/eiji-gravion)\
**Post date:** [November 19, 2012, 8:48pm UTC](https://www.ruby-forum.com/t/advertise-npn-without-spdy/224591/4 "2012-11-19T20:48:44Z")

</div>

Hello,

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

You can’t - NPN is advertised during SSL handshake.

Best regards,  
Piotr S. \< [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) \>
