nginx 引入 Dynamic Module 架構
nginx 在 1.9.11 版引入了 Dynamic Module,能夠更方便的決定要掛哪些模組使用了:「 Introducing Dynamic Modules in NGINX 1.9.11 」。
從以往的:
多了一個選項:
也因此多了 load_module 功能可以用:
To load a module at runtime, include the new load_module directive in the main context, specifying the path to the shared object file for the module, enclosed in quotation marks. When you reload the configuration or restart NGINX, the module is loaded in. You can specify a path relative to the source directory, as in these examples, or a full path.
load_module "modules/ngx_http_geoip_module.so";
load_module "modules/ngx_stream_module.so";
来自: https://blog.gslin.org/archives/2016/02/10/6293/nginx-引入-dynamic-module-架構/