Nginx - Block


block in Nginx is a grammar construct of the directive type.

It groups:

  • name and parameters
  • and a set of additional instructions surrounded by braces ({ and }).

See Language - Code Block (Grouping of Statement)


If a block directive can have other directives inside braces, it is called a context block. Examples:

Discover More
Nginx - Grammar

A page the grammar of Nginx nginx consists of modules which are controlled by directives specified in the configuration file. Directives are divided into simple directives and block directives....
Nginx - Http Block

The http block is a block that contains http parameters (directive).
Nginx - Location block

A location block is a block that is located inside a server block and maps a a resource path to a destination path such as: a local directory or an other service (see ) A server block may have several...
Nginx - Server Block Definition

A server block is a block that define a web server endpoints. It maps an URI to: a local directory or an other URI () and set some configurations. It is the equivalent of a Virtual host for apache....

Share this page:
Follow us:
Task Runner