How-To enable HTTP/2
Introduction
HTTP/2 is the next-generation HTTP protocol that improves website performance and efficiency. It is designed to reduce latency, enhance security, and optimize network resource usage compared to HTTP/1.1.
In Microsoft IIS (Internet Information Services), HTTP/2 is supported starting from Windows Server 2016 and Windows 10.
This guide will walk you through enabling HTTP/2 on Windows and IIS.
Step 1 - Check if HTTP/2 is enabled in the Windows Registry
Press Win + R
and type regedit
and hit enter. Now navigate to the following path:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters
There should be an entry called EnableHttp2
with a value of 2
.
Step 2 - If it’s not enabled, enable it
Should there be no such value or a value of 0
, you will need to enable it. Press Win + R
and type powershell
and execute the following (privileged) command:
New-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\HTTP\Parameters" -Name "EnableHttp2" -Value 1 -PropertyType DWORD -Force
You will then also need to restart IIS.
Step 3 - Verify
Open the Developer Tools by pressing F12
in Chrome / Firefox / Edge and open up your page. Make sure you have the Protocol
column enabled and check that the value is h2
.
You might also need to enable HTTP/2 support on all involved network components such as any Load Balancer or Web Application Firewall.
Related content
© ITSENSE AG. Alle Rechte vorbehalten. ITSENSE und CoreOne sind eingetragene Marken der ITSENSE AG.