How to server HTTP/2 Protocol with django

Pankaj Sharma picture Pankaj Sharma · Jul 7, 2018 · Viewed 8.1k times · Source

I am planing to deploy my Django application with HTTP/2 protocol but I'm unable to find the proper solution. How can I serve my Django web application with HTTP/2, the only thing that I find is hyper-h2.

I read the documentation but unable to setup the connections.

Answer

Sarath Ak picture Sarath Ak · Dec 9, 2019

You can do with Nginx proxy

if you have existing nginx config. you do by just adding a word .http2 in listen

    listen 443 ssl http2 default_server;

full document avaliable in

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-with-http-2-support-on-ubuntu-16-04