HTTP2.0: Nginx + HAProxy + Openssl

Nginx and HAProxy has the problem that you can’t use http2 because centos 6 comes with openssl-1.0.1. HTTP2 (or more precise ALPN) becomes possible with openssl-1.0.2.

Please note: any prerequisites are ignored


Nginx needs only the sources of openssl.
# wget
# tar xzf openssl-1.0.2j.tar.gz

And add additional to your configure params of nginx
with the path to that openssl sources.


HAProxy needs openssl as compiled form.

Also note: before 1.8 only http2 passthrough is available

Init script, to daemonized haproxy.
You have to modify the path/exec param to your haproxy binary.