如何使用Django服务器HTTP/2协议 [英] How to server HTTP/2 Protocol with django

查看:76
本文介绍了如何使用Django服务器HTTP/2协议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我计划使用HTTP/2协议部署Django应用程序,但找不到合适的解决方案.如何使用HTTP/2为Django Web应用程序提供服务,我发现的唯一内容是超-h2 .

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.

推荐答案

您可以使用Nginx代理

,如果您已有nginx配置.您只需在监听

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;

可在

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

这篇关于如何使用Django服务器HTTP/2协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆