我可以在原始服务器和cloudflare服务器之间使用HTTP / 2吗(Apache) [英] Can i use HTTP/2 between origin and cloudflare servers?(Apache)

查看:129
本文介绍了我可以在原始服务器和cloudflare服务器之间使用HTTP / 2吗(Apache)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试这样做,但是当我绕过我的域A记录时,该协议正在起作用。
在浏览器和Apache日志中都正确。

I try to do, but when i turn to bypass my domain A record, the protocol is h2 is working. All correct in browser and apache logs.

当我打开域上的cloudflare时,浏览器运行正常(我知道CF正在运行

When i turn on the cloudflare on the domain, the browser is working fine(I know the CF is working on HTTP2 protocol to clients).

但是我在apache日志中看到,
GET / HTTP / 1.1 302 5067
GET / en / HTTP / 1.1 200 5068
POST / zh-CN / ajax / user HTTP / 1.1 200 77

But i see in apache logs, "GET / HTTP/1.1" 302 5067 "GET /en/ HTTP/1.1" 200 5068 "POST /en/ajax/user HTTP/1.1" 200 77

使用http / 1.1,但是我不知道为什么:)

Its using http/1.1, but i dont know why :)

我尝试使用强制设置http2协议,但没有区别。

I try to set force http2 protocol using, but no difference.

有什么主意吗? :

谢谢!

推荐答案

Cloudflare计划使用HTTP 1.1

Cloudflare plans to use HTTP 1.1 to the origin for the foreseeable future.

https://support.cloudflare.com/hc/zh-cn/ articles / 214534978-Cloudflare之间是否支持HTTP-2-或SPDY协议-and-the-origin-server-

这篇关于我可以在原始服务器和cloudflare服务器之间使用HTTP / 2吗(Apache)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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