How to server HTTP/2 Protocol with django

后端 未结 3 1511
Happy的楠姐
Happy的楠姐 2021-02-08 22:23

I am planing to deploy my django project with HTTP/2 protocol but I unable to find the proper way how can I server my django based website with HTTP/2, the only thing that I fi

3条回答
  •  忘掉有多难
    2021-02-08 23:04

    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

提交回复
热议问题