Skip to content

Nginx 1.25.1+ [warn] the "listen ... http2" directive is deprecated #451

Open
@anvme

Description

@anvme

Information

Details

Description

Nginx 1.25.1+ was released, and it has now deprecated the http2 parameter in Nginx listen directive in favour of using an http2 directive standalone with on/off values.

Steps to reproduce

nginx -t
...
server {
listen 443 ssl http2;
...

Expected behavior

server {
listen 443 ssl;
http2 on;

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions