Discover Centmin Mod today
Register Now

Beta Branch ngx_pagespeed dynamic module routine update in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Apr 8, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    54,527
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    9:44 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ngx_pagespeed dynamic module routine update in 123.09beta01

    ensure if ngx_pagespeed.so dynamic module and load module line is detected that nginx pagespeed routine doesn't comment out the pagespeedadmin.conf include file in /usr/local/nginx/conf/nginx.conf as outlined issue at https://community.centminmod.com/posts/47781/

    however, outstanding issue now is that centmin mod nginx configuration routine detects if NGINX_PAGESPEED='n' is set so if you just drop in ngx_pagespeed.so dynamic module manually into /usr/local/nginx/modules directory and manually add ngx_pagespeed.so load modules line to /usr/local/nginx/conf/dynamic-modules.conf, on centmin.sh menu option 4 will currently wipe the /usr/local/nginx/conf/dynamic-modules.conf entries and re-populate based on which nginx dynamic module variables are enabled i.e. NGXDYNAMIC_NGXPAGESPEED='y' + NGINX_PAGESPEED='y'.


    So essentially right now each centmin.sh menu option 4 recompile time checks for NGXDYNAMIC_NGXPAGESPEED='y' + NGINX_PAGESPEED='y' before populating /usr/local/nginx/conf/dynamic-modules.conf with the load line for ngx_pagspeed.so and wipes out any instance of ngx_pagespeed.so in /usr/local/nginx/modules when NGINX_PAGESPEED='n' set. So manual drop in of dynamic modules won't work 100% on subsequent centmin.sh menu option 4 recompiles as previously I assume if NGINX_PAGESPEED='n' is set, that you don't want to load ngx_pagespeed.so dynamic module. Will need to come up with some new logic as if you set NGINX_PAGESPEED='n' and NGXDYNAMIC_NGXPAGESPEED='n', normally you'd assume ngx_pagepseed.so isn't wanted.

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,527
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    9:44 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    Nginx Dynamic Module Support Updates



    Should have working nginx dynamic module manual drop in of modules working with these 4 committed updates in 123.09beta01+ and newer versions
    So for manually dropped in nginx dynamic modules placed in /usr/local/nginx/modules, you can set in centmin mod persistent config file /etc/centminmod/custom_config.inc to NGXDYNAMIC_MANUALOVERRIDE='y' you can override centmin mod default behavior to purge manually dropped in nginx dynamic modules from /usr/local/nginx/modules and then add to /usr/local/nginx/conf/dynamic-modules-includes.conf the load_module line i.e.
    Code (Text):
    load_module "modules/ngx_pagespeed.so";
    

    Then the Nginx dynamic module will persist even if it's control variable is set to = 'n' i.e. if NGINX_PAGESPEED='n' and NGXDYNAMIC_NGXPAGESPEED='n' is set.