February 2018
Beginner to intermediate
348 pages
9h 40m
English
Directives are brought in by modules; if you activate a new module, a specific set of directives become available. Modules may also enable directive blocks, which allow for a logical construction of the configuration:
events {
worker_connections 1024;
}
The events block that you can find in the default configuration file is brought in by the events module. The directives that the module enables can only be used within that block. In the preceding example, worker_connections will only make sense in the context of the events block. On the other hand, some directives must be placed at the root of the configuration file because they have a global effect on the server. The root of the configuration file is also known as the ...
Read now
Unlock full access