Nginx has a very modular architecture. All major operations that Nginx performs are carried out by modules. All Nginx modules are built in at compile time and are not loaded dynamically.
Module delegation can also be called module chaining. The core pretty much does the basic stuff related to setting up the connection and taking care of things related to the protocol. It then sets up a chain of modules to execute, each taking care of a certain phase or stage of request processing.
The module-based noncentralized architecture makes it possible for advanced users to develop a module that does something they want.
The following are the different types of Nginx modules.
There is a handler for each defined location in the configuration file. When the server starts up, handlers are attached or bound to a location. Ideally there should only be one handler to a location; if there are more than one defined in the configuration file, only one of them will be valid (typically...