Join the community today
Register Now

Beta Branch fix nginx reuseport listen directive check in 130.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 12, 2024.

  1. eva2000

    eva2000 Administrator Staff Member

    51,209
    11,897
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,371
    Local Time:
    8:27 PM
    Nginx 1.25.x
    MariaDB 10.x
    fix nginx reuseport listen directive check in 130.00beta01

    - With nginx 1.25.3 deprecated http2 listen parameter and made http2 a nginx directive of it's own. The old reuseport nginx check filtered listen directive down to http2 keyword match. But if you created a nginx HTTPS vhost on nginx 1.25.3 server, Centmin Mod would create listen directive without http2 parameter and set http2 as a directive. As such the old reuseport check routine missed checking if reuseport occurs within existing nginx vhosts as http2 parameter is no longer in listen directive. If you kept on using nginx 1.25.3 there are no issues usually. But if you downgraded Nginx <1.25.3, then a new Nginx vhost created would be created with old deprecated http2 paraneter inside listen directive. As such a reuseport directive check won't catch any existing nginx 1.25.3+ vhosts with reuseport added.
    - This update removes from reuseport check routine the reliance of http2 listen directive parameter so that properly checking if existing nginx vhost has reuseport parameter

    Continue reading...


    130.00beta01 branch

    Support Centmin Mod


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