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:

Powered by ComboStrap