Haproxy: convert http1.1 request from the client to http2 on the backend side

For example, you are using this sample config And get an error: It happens because your backend server uses only h2 (http2) and due to this thread https://www.mail-archive.com/haproxy@formilux.org/msg43261.html you should set the “:authority” pseudo-header It can be done by adding ‘set-uri’ in the config

Certificate order in Haproxy PEM file

For SSL in Haproxy you need to create PEM-file and put cert plus private key. But in right order —–BEGIN MY CERTIFICATE—– —–END MY CERTIFICATE—– —–BEGIN INTERMEDIATE CERTIFICATE—– —–END INTERMEDIATE CERTIFICATE—– —–BEGIN INTERMEDIATE CERTIFICATE—– —–END INTERMEDIATE CERTIFICATE—– —–BEGIN ROOT CERTIFICATE—– —–END ROOT CERTIFICATE—– —–BEGIN RSA PRIVATE KEY—– —–END RSA PRIVATE KEY—–