Asc Nginx configuration file is a text file:
It consists of two parts 01, is a Directive (Directive), it is a directive block (command block).
02 in each instruction; end semicolon, a space between the command and the parameters delimited between multiple parameters are separated by semicolons.
03 fast instruction to the braces {} plurality of instructions grouped together
04 include statement allows the combination of multiple profiles to enhance maintainability
05 using the pound sign # to add comments to improve readability
$ 06 to use the variable symbol
Pr 07 portion of the instruction supports regular expressions
Configuration parameters: unit time | Configuration parameters: unit space | ||||
ms | milliseconds | d | days | B | bytes bytes |
s | seconds | w | weeks | k/K | kilobytes kilobytes |
m | minutes | M | months,30 days | m/M | megabytes megabytes |
h | hours | Y | years,365 days | g / G | gigabytes gigabytes |
http instruction block configuration
http show this braces are made of all instructions http to parse module to be executed
upstream indicates that the upstream service when nginx needs Tomcat , Django when other services within the enterprise network, which are interactive, define this module
server definition of a domain name or set of domain names
location URL Expressions
http instruction block configuration
http show this braces are made of all instructions http to parse module to be executed
upstream indicates that the upstream service when nginx needs Tomcat , Django when other services within the enterprise network, which are interactive, define this module
server definition of a domain name or set of domain names
location URL Expressions