Nginx configuration file Structure

Source: Internet
Author: User
Nginx configuration file Structure

Global parameters


Configuring system global Parameters

Such as:
Worker_processes Number of working sub-processes,
Error_log error log path,
PID Process ID

Event

General configuration of Nginx operation mode and the characteristics of the connection

Such as:

Worker_connections 1024; Maximum 1024 connections allowed for a child process

http

Configuring the primary segment of the HTTP server

(1) HTTP Parameters section

such as connection timeout time, compression, buffering, etc.

(2) Upstream load Balancing settings

(3) Server configuration virtual Host

Can contain multiple location

Location used for URL positioning, to locate special paths or files again, such as Image directory processing alone

Nginx configuration file Structure

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.