Want to subscribe to topics you're interested in?
Become a Member

Beta Branch add testcookie-nginx-module optional support in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 10, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,578
    6,854
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,275
    Local Time:
    4:08 PM
    Nginx 1.13.x
    MariaDB 5.5
    add testcookie-nginx-module optional support in 123.09beta01

    - disabled by default via variable NGINX_TESTCOOKIE='n' and can be enabled be setting in persistent config file at /etc/centminmod/custom_config.inc set NGINX_TESTCOOKIE='y' to install testcookie-nginx-module as static module or enable an additional 2nd variable in persistent config file for NGXDYNAMIC_TESTCOOKIE='y' to install as dynamic module prior to running centmin.sh menu option 4 to recompile nginx with testcookie-nginx-module support
    - installs module only as configuration is left to end user i.e. Install - Upgrade - Nginx - CentOS 7.x - Anti-DDoS Mitigate: Automatic deploy/config Testcookie module for Centminmod (vCentminmod-DDoS)

    Continue reading...

    123.09beta01 branch
     
    • Winner Winner x 2
  2. eva2000

    eva2000 Administrator Staff Member

    30,578
    6,854
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,275
    Local Time:
    4:08 PM
    Nginx 1.13.x
    MariaDB 5.5
    example with of nginx with testcookie-nginx-module installed as dynamic nginx module with persistent config file at /etc/centminmod/custom_config.inc set variables
    Code (Text):
    NGXDYNAMIC_TESTCOOKIE='y'
    NGINX_TESTCOOKIE='y'
    

    dynamic modules include file /usr/local/nginx/conf/dynamic-modules.conf contents
    Code (Text):
    # place custom load_module lines in this dynamic-modules-includes.conf
    # file so that they persistent i.e. for manually dropped in dynamic modules
    include /usr/local/nginx/conf/dynamic-modules-includes.conf;
    load_module "modules/ngx_http_testcookie_access_module.so";
    load_module "modules/ngx_http_image_filter_module.so";
    load_module "modules/ngx_http_headers_more_filter_module.so";
    load_module "modules/ngx_http_set_misc_module.so";
    load_module "modules/ngx_http_echo_module.so";
    load_module "modules/ngx_http_fancyindex_module.so";
    load_module "modules/ngx_http_vhost_traffic_status_module.so";
    load_module "modules/ngx_pagespeed.so";
    load_module "modules/ngx_stream_module.so";