Learn about Centmin Mod LEMP Stack 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,301
    1,040
    113
    May 25, 2014
    Ratings:
    +1,499
    Local Time:
    11:37 AM
    Mainline
    10.2
    I don't want to compile Nginx with http_realip_module.
    Thanks!
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,374
    7,985
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,294
    Local Time:
    1:37 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  3. rdan

    rdan Premium Member Premium Member

    4,301
    1,040
    113
    May 25, 2014
    Ratings:
    +1,499
    Local Time:
    11:37 AM
    Mainline
    10.2
  4. rdan

    rdan Premium Member Premium Member

    4,301
    1,040
    113
    May 25, 2014
    Ratings:
    +1,499
    Local Time:
    11:37 AM
    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

    36,374
    7,985
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,294
    Local Time:
    1:37 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
..