Welcome to Centmin Mod Community
Become a Member

Nginx http2 directive Nginx warning only when creating subdomain

Discussion in 'Bug Reports' started by pamamolf, Apr 18, 2026.

  1. pamamolf

    pamamolf Well-Known Member

    4,127
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    12:41 PM
    Nginx-1.29.x
    MariaDB 10.6.x
    Hi,


    I just install Centminod latest beta on Almalinux 9 and i added 2 domains for Nginx and all was working great.

    Then i added from menu (the same way) a subdomain and i got the usual warning:

    Code:
    nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead 
    Maybe there is a bug for subdomains creation?

    Thanks in advance !
     
  2. eva2000

    eva2000 Administrator Staff Member

    59,560
    12,539
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,180
    Local Time:
    7:41 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    How did you add these 2 domains ? via centmin.sh menu option 2?

    The warning is cosmetic right now. Your created nginx domain should work. Does it?

    checked all 3 domains nginx vhost config /usr/local/nginx/conf/conf.d/yourdomain.com.ssl.conf ? are they all using same directive/listen format
     
  3. duderuud

    duderuud Active Member

    320
    97
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +217
    Local Time:
    11:41 AM
    1.29 x
    11.4
    Change
    Code (Text):
    server {
      listen 443 ssl httpd2 reuseport;
      server_name your_server_name.com;
    

    to
    Code (Text):
    server {
      listen 443 ssl reuseport;
      http2 on;
      server_name your_server_name.com;
    


    This was fixed a while back but this seems like a regression of some sort.
     
    Last edited: Apr 20, 2026
  4. pamamolf

    pamamolf Well-Known Member

    4,127
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    12:41 PM
    Nginx-1.29.x
    MariaDB 10.6.x
    yes.

    yes.

    I already adjust what was needed but as i can recall the issue was related only on the subdomain generation and not for the main domains...

    @duderuude

    I think it was as:

    Code:
    server {
      listen 443 ssl http2 reuseport;
      server_name your_server_name.com;
    and not as expected:

    Code:
    server {
      listen 443 ssl reuseport;
      http2 on;
      server_name your_server_name.com;
    Thanks