Following this long list of directives from the base modules, we can begin to envision a first configuration adapted to your profile in terms of targeted traffic and, more importantly, to your hardware. In this section, we will first take a closer look at the default configuration file to understand the implications of each setting.
There is a reason why Nginx stands apart from other web servers—it's extremely lightweight, optimized, and to put it simply, it's fast. As such, the default configuration is efficient, and in many cases, you will not need to apply radical changes to the initial setup.
We will study the default configuration by opening up the main configuration file nginx.conf
, although you will find this file to be almost empty. The reason lies in the fact that when a directive does not appear in the configuration file, the default value is employed. We will thus consider the default values here as well as...