Join the community today
Become a Member

Nginx Disable Dynamic Modules Completely

Discussion in 'Centmin Mod Insights' started by BamaStangGuy, Jan 24, 2018.

  1. BamaStangGuy

    BamaStangGuy Active Member

    668
    192
    43
    May 25, 2014
    Ratings:
    +272
    Local Time:
    12:25 AM
    Is there a way to disable --compat from being compiled? I do not use Dynamic Modules and would like to have nginx compiled without them.

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Why though? nginx performs better and more efficiently with dynamic modules as opposed to nginx's traditional static modules. Right now no way to remove --compat flag. But you can just disable each dynamic nginx module to go back to static nginx module compiles via persistent config file set variables outlined in FAQ item 39
     
  3. BamaStangGuy

    BamaStangGuy Active Member

    668
    192
    43
    May 25, 2014
    Ratings:
    +272
    Local Time:
    12:25 AM
    Everything that I have read up until now has always recommended static over dynamic for performance. I am trying to catch up so if you did some testing on static vs dynamic or if there is something else I can read, more than happy to if you could point me in the right direction.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,154
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Haven't done so much testing just memory usage for nginx is better with dynamic modules at least.