Join the community today
Become a Member

Nginx How to disable "http_realip_module" ?

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

  1. rdan

    rdan Premium Member Premium Member

    4,195
    1,014
    113
    May 25, 2014
    Ratings:
    +1,438
    Local Time:
    12:37 PM
    Mainline
    10.2
    I don't want to compile Nginx with http_realip_module.
    Thanks!
     
  2. eva2000

    eva2000 Administrator Staff Member

    34,581
    7,650
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,766
    Local Time:
    2:37 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  3. rdan

    rdan Premium Member Premium Member

    4,195
    1,014
    113
    May 25, 2014
    Ratings:
    +1,438
    Local Time:
    12:37 PM
    Mainline
    10.2
  4. rdan

    rdan Premium Member Premium Member

    4,195
    1,014
    113
    May 25, 2014
    Ratings:
    +1,438
    Local Time:
    12:37 PM
    Mainline
    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

    34,581
    7,650
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,766
    Local Time:
    2:37 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
..