gpt4 book ai didi

iis - 在 Windows 10 中的 HTTP.SYS 和 IIS 中禁用 HTTP/2/SPDY

转载 作者:行者123 更新时间:2023-12-03 23:28:10 25 4
gpt4 key购买 nike

在 Windows 10 上进行测试时,我们发现了许多浏览器不兼容问题,这是我以前在 Windows 早期版本中从未见过的。一些浏览器可以工作,但其他浏览器会报告 ERR_SPDY_PROTOCOL_ERROR。我对这个问题的快速搜索表明我并不孤单。

我的应用程序使用 WWSAPI 和 HTTP.SYS 与 HTTPS (TLS)。有谁知道如何在 Windows 10 上的 WWSAPI(使用 HTTP.SYS)中禁用 SPDY/HTTP/2?

我也很想获得 HTTP.SYS 的完整最新的 Windows 10 注册表设置列表。

我对此的回答见下文。希望这对其他人也有帮助。

标记

最佳答案

编辑:禁用 HTTP/2 会显着降低您网站的速度,这不是永久性的解决方案。问题原来是由我们的 webapp 向服务器发送错误的身份验证 header 引起的。

要仍然禁用 HTTP/2,请参见下文。

(OP给出了一个有用的答案,但在问题中。我移动了答案):

I did work around my HTTP/2 problem by configuring Windows 10 HTTP.SYS in the registry to disable HTTP/2. Given that I didn't find info anywhere, I thought I'd share my solution to that problem here too. I would like to find a way of doing this through WWSAPI though.

If I turned off SPDY support in the client browser, it would work but I wanted to turn this off at the server side (HTTP.SYS on Windows 10) so that it wouldn't negotiate HTTP/2 but would use the older more compatible HTTP(S).

Discovered two new registry settings for HTTP.SYS in:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters

  • EnableHttp2Tls REG_DWORD 0
  • EnableHttp2Cleartext REG_DWORD 0

Adding these values and setting both to 0 in Windows 10 resulted in HTTP/2 / SPDY not being negotiated and my ERR_SPDY_PROTOCOL_ERROR problems went away without requiring browser configuration changes. I'm not suggesting there is anything wrong with Windows 10 HTTP/2, the problems may be with certain browsers.

This may work for IIS too, but I don't use that so I haven't tried and in any case there may be a better way to do this in IIS.

Hope this helps others too.



我可以确认这对 IIS 也有帮助,但我必须 重启我的电脑 .

关于iis - 在 Windows 10 中的 HTTP.SYS 和 IIS 中禁用 HTTP/2/SPDY,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31718533/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com