简体   繁体   English

IIS/ Windows 服务器 2019 无 HTTP/2

[英]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 回退的常见原因:

  • Windows authentication - this is disabled for my site Windows 身份验证 - 我的站点已禁用此身份验证
  • clear text - https is enabled on my site with a valid SSL certificate明文 - 使用有效的 SSL 证书在我的网站上启用了 https
  • Bandwidth throttling - not enabled on my site带宽限制 - 未在我的网站上启用
  • registry settings for disabling HTTP/2 - not set用于禁用 HTTP/2 的注册表设置 - 未设置

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 为此,您有两个选择:

  1. Edit the registry keys编辑注册表项
  2. Install IISCrypto and uncheck TLS 1.0 and TLS 1.1安装 IISCrypto 并取消选中 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.

相关问题 安装 .NET 包以用于 IIS Web 服务器 (Windows Server 2019) - Installing .NET packages for use in IIS web server (Windows Server 2019) 在 IIS 10 / Windows Server 2019 中以编程方式回收应用程序池 - Recycle App Pool Programmatically in IIS 10 / Windows Server 2019 Vue.js 在部署到 windows 服务器 2019 IIS 后未扩展 - Vue.js not scaling after deployment to windows server 2019 IIS 无法通过 Windows 10 访问我的服务器 2019 上的 IIS 管理器 - Cannot access IIS manager on my server 2019 through windows 10 在 Windows Server 2019 上的 IIS 上安装 ASP.NET 应用程序 - Install ASP.NET application on IIS on Windows Server 2019 无法在 windows 服务器 2019 上的 IIS 上使用 https - Can't Use https on IIS on windows server 2019 如何在 IIS windows 服务器 2019 中增加 post 请求的加载时间 - How to increase loading time of post request in IIS windows server 2019 在 IIS 10 Windows Server 2019 上启用 TLS 1.3 - Enable TLS 1.3 on IIS 10 windows server 2019 表达式太复杂 IIS Url 在 windows 服务器 2019 中重写 - Expression too complex for IIS Url rewrite in windows server 2019 IIS 上的 Python flask 应用程序无法在 Windows Server 2019 上运行 - Python flask app on IIS not working on Windows Server 2019
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM