Nginx Learning Notes-A preliminary discussion on the introduction of Nginx
The Ginx server is a highly acclaimed product in a lightweight Web server, with HTTP proxies and reverse proxies (currently supported by seven-tier and four-tier proxies), load balancing, and Web caching.
Introduction to Nginx Configuration files
Beginners are always confused about the various blocks of the Nginx configuration file, and then simply introduce the block format of the Nginx configuration file and the meaning and the scope of its effect.
#这里是全局块, you can configure some globally effective configuration, such as Nginx startup user, Nginx worke_pressevents {#event块, configuration worker_connections, is also global effective}http {#http块, An important part of Nginx server configuration, proxy, cache, log definition and so on most of the functions and third-party configuration can be placed in this module. server {#server块和虚拟主机有密切关系, (do not understand the concept of virtual host Google), each HTTP block can contain multiple server blocks, configure the virtual host in the server block to listen to the port, IP or domain location {# Each server block can contain multiple location blocks, strictly speaking, the location block is just an instruction for the server block, it receives the string followed by the domain name, matches it according to the string, processes the specific request, redirects, caches, And the function of response control. }}}
Nginx each configuration block function detailed