NGINX global configuration parameters
The global section is used to configure the parameters that affect the entire server and is an exception to the format shown in the preceding section. The global section may include configuration directives, such as user
and worker_processes
, as well as sections, such as events
. There are no open and closing braces ({}
) surrounding the global section.
The most important configuration directives in the global context are shown in the following table. These configuration directives will be the ones that you will be dealing with for the most part.
Global configuration directives |
Explanation |
---|---|
|
The user and group under which the worker processes run is configured using this parameter. If the group is omitted, a group name equal to that of the user is used. |
|
This directive shows the number of worker processes that will be started. These processes will handle all the connections made by the clients. Choosing the right number depends... |