Get the most out of your Centmin Mod LEMP stack
Become a Member

Beta Branch add nginx-length-hiding-filter-module in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 18, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    29,049
    6,591
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,786
    Local Time:
    5:35 AM
    Nginx 1.13.x
    MariaDB 5.5
    add nginx-length-hiding-filter-module in 123.09beta01

    add a new nginx-length-hiding-filter-module GitHub - nulab/nginx-length-hiding-filter-module: nginx filter module to append random generated string to the end of HTML response for nginx in 123.09beta01 disabled by default and enabled/controlled by 2 variables you set in your persistent config file at /etc/centminmod/custom_config.inc. Enable by setting NGINX_LENGTHHIDE='n' to NGINX_LENGTHHIDE='y' and then running centmin.sh menu option 4 to recompile Nginx server.

    Code (Text):
    NGINX_LENGTHHIDE='n'         # https://github.com/nulab/nginx-length-hiding-filter-module
    NGINX_LENGTHHIDEGIT='y'      # triggers only if NGINX_LENGTHHIDE='y'
    


    Continue reading...

    123.09beta01 branch
     
    Last edited: Aug 18, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    29,049
    6,591
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,786
    Local Time:
    5:35 AM
    Nginx 1.13.x
    MariaDB 5.5
    example with module enabled
    then enable in nginx vhost location context match with option length_hiding on
    Code (Text):
        location /hiding {
            length_hiding on;
        }
     
  3. eva2000

    eva2000 Administrator Staff Member

    29,049
    6,591
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,786
    Local Time:
    5:35 AM
    Nginx 1.13.x
    MariaDB 5.5
  4. eva2000

    eva2000 Administrator Staff Member

    29,049
    6,591
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,786
    Local Time:
    5:35 AM
    Nginx 1.13.x
    MariaDB 5.5
    @BamaStangGuy apparently that was fixed for incompatibility with HTTP/2 nginx 1.11.3 ? · Issue #4 · nulab/nginx-length-hiding-filter-module · GitHub so worth retrying/retesting :)

    But I tried again with nginx 1.11.0 and still doesn't work for me heh

    set in nginx vhost
    Code (Text):
    location /hiding {
        length_hiding on;
    }
    

    create directory /hiding with index.html page and see if the module inserts a random string into html. Unfortunately, still not seeing the random string
     
  5. SFLC

    SFLC Active Member

    224
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    9:35 PM
    1
    10
    Just tried this out, not working for me either
     
    • Informative Informative x 1