如何在Apache 2.4.18服务器中实现不带SSL的http2 [英] How to implement http2 without ssl in Apache 2.4.18 Server

查看:175
本文介绍了如何在Apache 2.4.18服务器中实现不带SSL的http2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个使用HTTP/2协议的网站,该网站在Apache 2.4.18 HTTP Server上运行.目前,我已使网站启用了SSL,因为我读到某个地方默认情况下HTTP/2需要SSL.我可能不需要确保我的网站安全,所以我不想花钱购买SSL证书.

I have made a website with HTTP/2 Protocol which is running on Apache 2.4.18 HTTP Server. Currently I have made the website is SSL Enabled because I read somewhere that HTTP/2 by default requires SSL. I may not require to make my website secure, so I don't want to spend money in buying a SSL Certificate.

是否有一种无需使用SSL配置即可实现HTTP2协议的方法? 如果是,我应该在httpd.conf文件中写入哪些配置设置? 我是否需要更改浏览器的所有属性/设置-Chrome/Firefox等?

Is there a way to implement HTTP2 Protocol without using SSL Configurations ? If yes, what configuration settings should I write in httpd.conf file ? Do I need to change any properties/settings of my Browser - Chrome/Firefox etc ?

推荐答案

据我所知,如果您通过HTTP而不是HTTPS连接到网站,大多数Web浏览器将不会使用HTTP2协议.

As far I know, the most web browsers will not use HTTP2 Protocol if you would connect to the web site via HTTP instead of HTTPS.

在许多地方都可以免费获得SSL证书,例如, StartSSL 通用SSL 此处)等.该证书可能不会保存很长时间,并且没有时间戳等其他属性(例如此处),但仍可以使用.您仍然可以免费使用证书.

There are many places where you can get SSL certificate for free, for example, StartSSL, Universal SSL, Let’s Encrypt (see here) and other. The certificate could be not for the long time period and don't have some additional properties like Time-Stamping (like here), but it could be still used. You can still use the certificate for free.

您可以在此处阅读,例如,有关在Apache中配置HTTP2的说明HTTP服务器.最重要的是使用最新版本的 OpenSSL 和最新版本的Apache Server.我建议您阅读这篇文章关于HTTP2,请看视频和相应的幻灯片

You can read here, for example, the instruction of configuring of HTTP2 in Apache HTTP Server. The most important would be to use the latest version of OpenSSL and the latest version of Apache Server. I'd recommend you to read the article about HTTP2, look the video and the corresponding slides here about making TLS faster and to go through the checklist.

这篇关于如何在Apache 2.4.18服务器中实现不带SSL的http2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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