Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable HTTP/2 on IIS of Windows Server 2016

We are running into some issues that seem to be affected by http2 and I want to turn it off temporarily to troubleshoot. I tried the registry keys outlined in this question but that did not help with Windows Server 2016.

How to disable HTTP/2 on IIS of Windows 10

like image 865
Shaun Bowe Avatar asked Jun 20 '17 18:06

Shaun Bowe


People also ask

How do I know if http2 is enabled in IIS?

Launch your browser from your Windows 10 or Windows Server 2016 machine and hit F12, (or go to Settings and enable F12 Developer Tools), and then switch to the Network tab. Browse to https://localhost and voila, you are on HTTP/2!

Does IIS support http2?

IIS on Windows 10 or Windows Server 2016 supports HTTP/2.

Is http 2 enabled by default?

Note: HTTP/2 is enabled by default at Kinsta for all sites running over HTTPS.


2 Answers

  1. Start → regedit

  2. Navigate to the folder/path: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters

  3. Under the Parameters folder, right-click the white-space, add 2 new DWORD (32-bit) values:

    • EnableHttp2Tls
    • EnableHttp2Cleartext
  4. Ensure both new values have been set to 0(disabled) by right-clicking the value and clicking "Modify..."

  5. Restart the OS.

like image 175
Zanas Tumasonis Avatar answered Oct 04 '22 08:10

Zanas Tumasonis


Another solution, if you are only testing, is run Chrome without http2 enabled. from start run, chrome --disable-http2

Also, apparently a fix is coming, we just have to be patient for the rollout. See THIS article

like image 24
Post Impatica Avatar answered Oct 04 '22 07:10

Post Impatica