Join the community today
Become a Member

http2 directive is deprecated nginx

Discussion in 'Bug Reports' started by adamus007p, Jul 5, 2025.

  1. adamus007p

    adamus007p Member

    375
    18
    18
    Feb 8, 2019
    Ratings:
    +36
    Local Time:
    11:46 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e.AlmaLinux9
    • Centmin Mod Version Installed: i.e. 1132.00stable fresh installation
      Code (Text):
      cminfo versions
    Code (Text):
     cminfo versions
    
    1st:
    132.00stable.b091 #Mon Jun 30 06:27:09 PM CEST 2025
    ..
    last 10:
    132.00stable.b091 #Tue Jul  1 05:30:38 PM CEST 2025
    132.00stable.b091 #Tue Jul  1 05:33:05 PM CEST 2025
    132.00stable.b091 #Tue Jul  1 05:35:40 PM CEST 2025
    132.00stable.b091 #Tue Jul  1 05:38:09 PM CEST 2025
    132.00stable.b091 #Tue Jul  1 05:40:39 PM CEST 2025
    132.00stable.b091 #Tue Jul  1 05:43:09 PM CEST 2025
    132.00stable.b091 #Tue Jul  1 05:45:39 PM CEST 2025
    132.00stable.b091 #Tue Jul  1 05:48:14 PM CEST 2025
    132.00stable.b091 #Tue Jul  1 05:51:28 PM CEST 2025
    132.00stable.b091 #Tue Jul  1 05:54:06 PM CEST 2025
    
    [18:22][root@host ~]#


    I do know why it show only that and several times.

    but

    Code (Text):
    nginx -V
    nginx version: nginx/1.27.5 (300625-183529-almalinux9-kvm-ba2e74a-br-a71f931)
    built with OpenSSL 3.2.2 4 Jun 2024
    TLS SNI support enabled
    



    Code (Text):
    nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /usr/local/nginx/conf/conf.d/--dns_cf.ssl.conf:17
    nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /usr/local/nginx/conf/conf.d/domain1.com.ssl.conf:13
    nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /usr/local/nginx/conf/conf.d/domain2.com.ssl.conf:13
    nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /usr/local/nginx/conf/conf.d/domain3.com.ssl.conf:13





    I read that Nginx 1.25.1+ Listen ... http2" directive is deprecated

    in /usr/local/nginx/conf/conf.d/ configs are with
    Code (Text):
    server {
      listen 443 ssl http2 reuseport;
     
  2. duderuud

    duderuud Premium Member Premium Member

    273
    88
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +189
    Local Time:
    11:46 AM
    1.27 x
    10.6
    Change
    Code (Text):
    server {
      listen 443 ssl http2 reuseport;
    

    to
    Code (Text):
    server {
      listen 443 ssl reuseport;
      http2 on;