Skip to content

Nginx 1.25.1+ Listen … http2” directive is deprecated #73

@SIP-Online

Description

@SIP-Online

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 192.168.1.3:443 ssl http2;

And the new format for nginx >= 1.25.1 is

server {
    listen 192.168.1.3:443 ssl;
    http2 on;

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