Nginx 1.25.1+ Listen ... http2" directive is deprecated

Just updated a server which upgraded nginx to 1.25.1

Warnings received on restart.

nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead

This will not break anything immediately, but just as a heads-up the old format is

server {
    listen ssl http2;

and the new format for nginx >= 1.25.1 is

server {
    listen ssl;
    http2  on;
1 Like

Noticed yesterday as well probally modify all the default templates and check for nginx version during config generation…


Hi @eris
So we should wait a futur Hestia update to fix the warn?


Will get attention in the future… It currently should not affect any working setup. It is only anoying.

Will patch it in the future…

Updated title / pinned it because it has been asked to many times :slight_smile:


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.