Core directives
load_module (Core directives)
Loads a reviewed dynamic module in the main configuration context before module-dependent blocks. The module must be compatible with the target binary. Loading a module executes native code; do not use unknown shared objects for a syntax test.
Formal Syntax & Structure
nginx syntaxnginx
load_module file;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| file | shared object path | Load a trusted compatible dynamic module in main context. Verify exact build ABI and use approved packages; syntax testing can execute module initialization. |
Working Example
Example Snippetnginx
# Illustrative path, not provided or executedload_module /reviewed/modules/ngx_http_example_module.so;