I. Overview
Our common configuration files:
Go to the conf package to view the basic situation of the configuration
(1)nginx.conf :
The basic configuration file of nginx
(2)mime.type :
mime types in the web
(3)proxy.conf
When configuring a reverse proxy, you need to use
Our core configuration file is in the nignx, conf configuration file.
When we are familiar, we can use the include command to accomplish all the tasks.
2. The basic process structure of Nginx
Nginx is a standard Master and Worker model.
There is only one master master process in Nginx, and when a request comes, the request is assigned to the worker process.
That is to say, the worker process processes requests, and the master distributes requests.
3. Modularization of Nginx
In Nginx, we can understand it as an implementation of the responsibility chain mode.
When the request comes, it will enter each module at one time to complete the task.
Therefore, when we learn Nginx, we need to learn with modular thinking.
5. The core of modularity
The core of learning Nginx lies in configuration, in the following, we will experiment with Nginx according to the module.