HTTP/2 with HaProxy

Getting HaProxy ready for HTTP2

HAProxy is free and powerful loadbalacner that provides a high availability load balancing for TCP and HTTP-based applications. The following tutorial shows how to get it ready for serving your website with the HTTP protocol. The instructions are for a server running Ubuntu 18.04 LTS:

1. Installation of Haproxy:

2. Creating an SSL certificate

For instructions how to obtain a free SSL certificate see our tutorial in: https://http2.co/http2-with-nginx/ . If you already have a SSL certificate you can skip this step and continue with 3.

3. Modifications of the HaProxy configuration file

The following modifications of your HaProxy configuration file are needed:

Start the HaProxy Service

sudo service haproxy restart