Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to server HTTP/2 Protocol with django

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.

like image 397
Pankaj Sharma Avatar asked Jul 07 '18 17:07

Pankaj Sharma


1 Answers

One option is to use Apache httpd server with mod_wsgi. Apache supports terminating HTTP/2. The link to your Django application is still via WSGI API so you don't really get any access to HTTP/2 specific features in your application. You can though configure Apache to do things like server push on your behalf.

  • https://httpd.apache.org/docs/2.4/howto/http2.html
  • https://httpd.apache.org/docs/2.4/mod/mod_http2.html
like image 79
Graham Dumpleton Avatar answered Oct 20 '22 12:10

Graham Dumpleton