Welcome to Centmin Mod Community
Register Now

Beta Branch support nginx 1.25.1 http2 directive change in 130.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jun 14, 2023.

  1. eva2000

    eva2000 Administrator Staff Member

    54,574
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    support nginx 1.25.1 http2 directive change in 130.00beta01

    - nginx 1.25.1 deprecates listen directive's http2 parameter and moves HTTP/2 support to it's own http2 directive with on/off value https://hg.nginx.org/nginx/rev/08ef02ad5c54
    - this update allows centmin.sh menu option 4 nginx upgrade/downgrade routine to detect if nginx <=1.25.0 or =>1.25.1 are being used and to auto change all nginx vhost config files in /usr/local/nginx/conf/conf.d/ accordingly to the config format supported by the relevant nginx version
    - right now http2 parameter is being deprecated so it still works just nginx -t config test will give you a warning that it is being deprecated. So for now haven't defaulted new Nginx vhost creation to new config format as folks may switch between nginx 1.25.1+ and <1.25.1 versions. So leave the changes to be automated at nginx upgrade time via centmin.sh menu option 4 to auto modify nginx vhosts based off of nginx version detected

    Code (Text):
    nginx -t
    nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /usr/local/nginx/conf/conf.d/domain4.com.ssl.conf:15
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful


    so for nginx 1.25.1 based vhost listen directives, the eventual change in nginx vhost config file will be from

    Code (Text):
    listen 443 ssl http2;

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


    Continue reading...


    130.00beta01 branch

    Support Centmin Mod


    If you find Centmin Mod useful, please help support Centmin Mod