Nginx - Grammar

1 - About

A page about the grammar of Nginx

3 - Syntax

3.1 - Directive

nginx consists of modules which are controlled by directives specified in the configuration file.

Directives are divided into simple directives and block directives.

3.1.1 - Simple

  • A simple directive consists of the name and parameters separated by spaces and ends with a semicolon ;.

3.1.2 - Block

A block directive consists of the name and parameters and a set of additional instructions surrounded by braces ({ and }).

3.2 - Scope

Directives placed in the configuration file outside of any contexts are considered to be in the main context. The events and http directives reside in the main context, server in http, and location in server.

3.3 - Comment

The rest of a line after the # sign is considered a comment.

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap