How to disable http v2

Sergey Kandaurov pluknet at
Tue Jun 7 11:09:24 UTC 2022

> On 7 Jun 2022, at 13:41, Peter Volkov <peter.volkov at> wrote:
> Hi. 
> After we enabled HTTP/2 in nginx some old software started to fail. So we would like to have HTTP v2 enabled in general but disabled for some specific IP:PORT. I've tried two listen directives in server block: 
>     listen IP:443 ssl http2;
>     listen IP:1443 ssl;
> The problem is that on both ports I see: * ALPN: offers h2. Is it possible to disable HTTP v2 for specific IP:PORT?

nginx offers HTTP/2 ALPN on IP:PORT configured to accept HTTP/2 connections.
Make sure you have no the "http2" option on a particular IP:1443 elsewhere,
as "http2" attributes to all virtual servers sharing such IP:PORT.

Sergey Kandaurov

More information about the nginx mailing list