The basic configuration format
The basic NGINX configuration file is set up in a number of sections. Each section is delineated as shown:
<section> { <directive> <parameters>; }
It is important to note that each directive line ends with a semicolon (;
). This marks the end of line. The curly braces ({}
) actually denote a new configuration context, but we will read these as sections for the most part.