By gabrielkodly
Hi,
I’m setting up a droplet running a containerized nginx application, behind a DO Load Balancer. The SSL Termination is handled on the LB.
My goal is to have http/2 connection to the LB and then the communication is done over http with the server. However, my connection is still http/1.1. Am I missing something here? Does it needs something else? This is my first time doing this kind of setup, any guidelines are appreciated. I’m using nginx/1.18.0.
Many Thanks,
Gabriel
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there @gabrielkodly,
HTTP/2 is supported on Managed Load Balancers. When setting up your forwarding rules, from the dropdown menu, you can select the protocol:

Once you setup the forwarding rules, when hitting the Load balancer you should get the h2 header.
What is the output of the following command:
- curl -IL https://your_lb
I’ve just tested this with a fresh new Load Balancer and it worked as expected:
HTTP/2 200
server: nginx/1.14.0 (Ubuntu)
content-type: text/html; charset=UTF-8
cache-control: no-cache, private
...
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.