且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 IIS 10 上禁用 HTTP/2

更新时间:2023-12-05 14:39:16

要在 Windows 10 HTTP.SYS 上禁用 HTTP/2,请在 Windows 10 桌面上的 HKEY_LOCAL_MACHINESystemCurrentControlSetServicesHTTP 中设置以下注册表值参数

To disable HTTP/2 on Windows 10 HTTP.SYS, set the following registry value on the Windows 10 desktop in HKEY_LOCAL_MACHINESystemCurrentControlSetServicesHTTPParameters

启用Http2Tls REG_DWORD 0

EnableHttp2Tls REG_DWORD 0

启用Http2Cleartext REG_DWORD 0

EnableHttp2Cleartext REG_DWORD 0

仅当 HTTP 失败时才需要其中的第二个.第一个用于 HTTPS.

The second of these is only necessary if the failure is with HTTP. The first is for HTTPS.