Nginx each configuration block function detailed

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.