Want more timely Centmin Mod News Updates?
Become a Member

Beta Branch disable deprecated HTTP/2 variables in Nginx 1.19.7+ in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 13, 2021.

  1. eva2000

    eva2000 Administrator Staff Member

    49,764
    11,447
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,789
    Local Time:
    4:56 AM
    Nginx 1.21.x
    MariaDB 10.x
    disable deprecated HTTP/2 variables in Nginx 1.19.7+ in 123.09beta01

    - For fresh nginx vhost creation in centmin.sh menu option 2, 22, nv command line and addons/acmetool.sh, disable (by commenting out with hash # in front) deprecated HTTP/2 variables in nginx 1.19.7+ as per http://hg.nginx.org/nginx/rev/827202ca1269 and http://hg.nginx.org/nginx/rev/f790816a0e87 for http2_max_field_size, http2_max_header_size and http2_max_requests
    - On centmin.sh menu option 4 Nginx compile/recompile/upgrade also check all existing Nginx vhosts fo deprecated variables and auto disable them if nginx 1.19.7+ version is detected as upgrade version
    - Existing Centmin Mod 123.09beta01 or higher users can first run cmupdate to update local code and then run centmin.sh menu option 4 to recompile nginx 1.19.7 to auto disable deprecated variables from nginx vhosts


    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    49,764
    11,447
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,789
    Local Time:
    4:56 AM
    Nginx 1.21.x
    MariaDB 10.x
    If you're using these deprecated HTTP/2 variables in Nginx 1.19.7+ vhosts, on Nginx service restarts or Nginx config checks (nginx -t), you'll get Nginx warning messages as such but the Nginx service will still start and run Nginx server fine. Example warning message:

    Code (Text):
    nginx: [warn] the "http2_max_field_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /usr/local/nginx/conf/conf.d/domain.com.ssl.conf:26
    nginx: [warn] the "http2_max_header_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /usr/local/nginx/conf/conf.d/domain.com.ssl.conf:27
    nginx: [warn] the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /usr/local/nginx/conf/conf.d/domain.com.ssl.conf:28
    
     
  3. pamamolf

    pamamolf Well-Known Member

    4,000
    420
    83
    May 31, 2014
    Ratings:
    +812
    Local Time:
    8:56 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    They will be replaced by the new variables or we must add them manually?
     
  4. eva2000

    eva2000 Administrator Staff Member

    49,764
    11,447
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,789
    Local Time:
    4:56 AM
    Nginx 1.21.x
    MariaDB 10.x
    No need to do anything when you run centmin.sh menu option 4 to update to nginx 1.19.7. They're being deprecated/removed and will use existing variables already in place in Centmin Mod Nginx config at the global level in /usr/local/nginx/conf/nginx.conf.