我可以在原始服务器和cloudflare服务器之间使用HTTP / 2吗(Apache)

编程入门 行业动态 更新时间:2024-10-25 20:25:58
本文介绍了我可以在原始服务器和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.

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

更多推荐

我可以在原始服务器和cloudflare服务器之间使用HTTP / 2吗(Apache)

本文发布于:2023-08-07 13:43:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1319366.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   原始   cloudflare   HTTP   Apache

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!