Join the community today
Register Now

Beta Branch add ORESTY_HEADERSMOREGIT option

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 14, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    add ORESTY_HEADERSMOREGIT option

    when /etc/centminmod/custom_config.inc persistent config file set to:
    Code:
    ORESTY_HEADERSMOREGIT=y
    
    and you recompile nginx via centmin.sh menu option 4, it will use OpenResty headers more nginx module's master branch instead of version specific branch https://github.com/openresty/headers-more-nginx-module

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    when /etc/centminmod/custom_config.inc persistent config file set to below options + centmin.sh menu option 4 recompile of nginx:
    Code:
    ORESTY_HEADERSMOREGIT=y
    NGXDYNAMIC_HEADERSMORE=y
    it enables openresety headers more nginx module to be installed from github master source instead which is where headers more nginx dynamic modules support is. Then set NGXDYNAMIC_HEADERSMORE=y too to enable dynamic modules for headers more module and you get at /usr/local/nginx/modules
    Code:
    ls -lah /usr/local/nginx/modules
    total 1.1M
    drwxr-xr-x  2 root root 4.0K Feb 14 04:40 .
    drwxr-xr-x 10 root root 4.0K Feb 13 10:20 ..
    -rwxr-xr-x  1 root root 126K Feb 14 04:40 ngx_http_geoip_module.so
    -rwxr-xr-x  1 root root 292K Feb 14 04:40 ngx_http_headers_more_filter_module.so
    -rwxr-xr-x  1 root root 137K Feb 14 04:40 ngx_http_image_filter_module.so
    -rwxr-xr-x  1 root root 549K Feb 14 04:40 ngx_stream_module.so
    and in nginx.conf include file /usr/local/nginx/conf/dynamic-modules.conf
    Code:
    load_module "modules/ngx_http_image_filter_module.so";
    load_module "modules/ngx_http_headers_more_filter_module.so";
    load_module "modules/ngx_http_geoip_module.so";
    load_module "modules/ngx_stream_module.so";
    
    also did same for openresty echo nginx module https://community.centminmod.com/posts/26509/
     
    Last edited: Feb 14, 2016