Welcome to Centmin Mod Community
Register Now

Nginx How to disable "http_realip_module" ?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by RoldanLT, Apr 5, 2017.

  1. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    9:35 PM
    1.11
    10.2
    I don't want to compile Nginx with http_realip_module.
    Thanks!
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,182
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    11:35 PM
    Nginx 1.13.x
    MariaDB 5.5
  3. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    9:35 PM
    1.11
    10.2
  4. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    9:35 PM
    1.11
    10.2
    I just found a very simple command to temporarily disable it :).

    Code:
    replace " --with-http_realip_module" "" -- /usr/local/src/centminmod/inc/nginx_configure.inc
    ###
    grep "with-http_realip_module" /usr/local/src/centminmod/inc/nginx_configure.inc
    
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,182
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    11:35 PM
    Nginx 1.13.x
    MariaDB 5.5