简体   繁体   English

如何在Apache 2.4.18服务器中实现没有ssl的http2

[英]How to implement http2 without ssl in Apache 2.4.18 Server

I have made a website with HTTP/2 Protocol which is running on Apache 2.4.18 HTTP Server. 我创建了一个HTTP / 2协议的网站,它运行在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. 目前我已经使网站启用了SSL,因为我在某处读到HTTP / 2默认需要SSL。 I may not require to make my website secure, so I don't want to spend money in buying a SSL Certificate. 我可能不需要让我的网站安全,所以我不想花钱购买SSL证书。

Is there a way to implement HTTP2 Protocol without using SSL Configurations ? 有没有办法在不使用SSL配置的情况下实施HTTP2协议? If yes, what configuration settings should I write in httpd.conf file ? 如果是,我应该在httpd.conf文件中写入哪些配置设置? Do I need to change any properties/settings of my Browser - Chrome/Firefox etc ? 我是否需要更改浏览器的任何属性/设置 - Chrome / Firefox等?

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. 据我所知,如果您通过HTTP而不是HTTPS连接到网站,大多数Web浏览器都不会使用HTTP2协议。

There are many places where you can get SSL certificate for free, for example, StartSSL , Universal SSL , Let's Encrypt (see here ) and other. 在许多地方您可以免费获得SSL证书,例如, StartSSLUniversal SSLLet's Encrypt (请参阅此处 )等。 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. 证书可能不是很长时间,并且没有像Time-Stamping这样的额外属性(如此 ),但它仍然可以使用。 You can still use the certificate for free. 您仍然可以免费使用证书。

You can read here , for example, the instruction of configuring of HTTP2 in Apache HTTP Server. 您可以在此处阅读,例如,在Apache HTTP Server中配置HTTP2的说明。 The most important would be to use the latest version of OpenSSL and the latest version of Apache Server. 最重要的是使用最新版本的OpenSSL和最新版本的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 . 我建议你阅读有关HTTP2 的文章 这里查看视频和相应的幻灯片了解如何更快地制作TLS并查看清单

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM