# HTTP/2 configuration help needed

**URL:** <https://discourse.haproxy.org/t/http-2-configuration-help-needed/484>\
**Category:** Help!\
**Created:** [July 7, 2016, 11:40am UTC](https://discourse.haproxy.org/t/http-2-configuration-help-needed/484 "2016-07-07T11:40:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![devnull](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@devnull](https://discourse.haproxy.org/u/devnull)\
**Post date:** [July 7, 2016, 11:40am UTC](https://discourse.haproxy.org/t/http-2-configuration-help-needed/484/1 "2016-07-07T11:40:32Z")

</div>

Hi,

I’ve found a few examples such as [http://m12.io/blog/http-2-with-haproxy-and-nginx-guide](http://m12.io/blog/http-2-with-haproxy-and-nginx-guide) that detail how to setup HTTP/2 and HTTP/1.1 co-existence.

But they seem to be limited to using SSL.

In particular, the examples I’ve found seem to use :

`use_backend nodes-http2 if { ssl_fc_alpn -i h2 }`

As a test for whether a client supports HTTP/2. What is the equivalent to use for plain old HTTP ?

Thanks !

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [July 7, 2016, 12:59pm UTC](https://discourse.haproxy.org/t/http-2-configuration-help-needed/484/2 "2016-07-07T12:59:06Z")

</div>

ALPN negotiated HTTP or any HTTP?

I would suggest to use a fallback for HTTP (default\_backend), otherwise non ALPN capable clients won’t match.

Otherwise, just match the ALPN value, which is http/1.1 ( { ssl\_fc\_alpn -i http/1.1 } ).

---

<div class="post-metadata">

**Author:** ![devnull](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@devnull](https://discourse.haproxy.org/u/devnull)\
**Post date:** [July 7, 2016, 3:40pm UTC](https://discourse.haproxy.org/t/http-2-configuration-help-needed/484/3 "2016-07-07T15:40:05Z")

</div>

Well, if it means anything, you can assume I have no plans to install SSL certs on HA proxy, as it is proxying for an HTTP only service at this stage, and my vague understanding is that ALPN needs certs.

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [July 11, 2016, 12:08pm UTC](https://discourse.haproxy.org/t/http-2-configuration-help-needed/484/4 "2016-07-11T12:08:00Z")

</div>

There is not support for unencrypted HTTP/2.0 in any browsers on the market today, so this doesn’t make any sense.
