Nginx introduces the Dynamic Module Architecture
Nginx introduced the Dynamic Module in version 1.9.11, which makes it easier to decide which Modules to use: "Introducing Dynamic Modules in NGINX 1.9.11 」.
From the past:
There is one more option:
Therefore, the load_module function can be used as follows:
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";
For more Nginx tutorials, see the following:
Deployment of Nginx + MySQL + PHP in CentOS 6.2
Build a WEB server using Nginx
Build a Web server based on Linux6.3 + Nginx1.2 + PHP5 + MySQL5.5
Performance Tuning for Nginx in CentOS 6.3
Configure Nginx to load the ngx_pagespeed module in CentOS 6.3
Install and configure Nginx + Pcre + php-fpm in CentOS 6.4
Nginx installation and configuration instructions
Nginx log filtering using ngx_log_if does not record specific logs
Nginx details: click here
Nginx: click here
This article permanently updates the link address: