[英]IIS/ Windows Server 2019 no HTTP/2
I have a server installed with Windows Server 2019 and IIS 10. According to https://learn.microsoft.com/en-us/iis/get-started/whats-new-in-iis-10/http2-on-iis all https sites should work using HTTP/2 out of the box.我的服务器安装了 Windows Server 2019 和 IIS 10。根据https://learn.microsoft.com/en-us/iis/get-started/whats-new-in-iis-10/http2-on-iis所有 https 站点都应该开箱即用地使用 HTTP/2。
However my site works in http/1.1 mode only.但是我的网站只能在 http/1.1 模式下工作。 I checked with Chrome/Firefox and online tools like https://tools.keycdn.com/http2-test and the result is "HTTP/2 protocol is not supported. ALPN extension is not supported."
我检查了 Chrome/Firefox 和在线工具,如https://tools.keycdn.com/http2-test ,结果是“不支持 HTTP/2 协议。不支持 ALPN 扩展。”
I checked the common reasons for http/1.1 fallback:我检查了 http/1.1 回退的常见原因:
My web site uses ASP.NET, but simple html is also downloaded in HTTP/1.1.我的web站点用的是ASP.NET,但是简单的html也是在HTTP/1.1下载的。
Any idea what to examine next?知道接下来要检查什么吗?
This is probably the answer you're all looking for:这可能是你们都在寻找的答案:
Open your registry editor and navigate to:打开您的注册表编辑器并导航到:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters
Make sure you have the following entries:确保您有以下条目:
EnableHttp2Cleartext REG_DWORD 1
EnableHttp2Tls REG_DWORD 1
Reboot.重启。
In my case I disabled TLS 1.0 and TLS 1.1 For this you have two options:就我而言,我禁用了 TLS 1.0 和 TLS 1.1 为此,您有两个选择:
Note: You need to reboot the server in order to apply the changes注意:您需要重新启动服务器才能应用更改
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.