84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
like
include $document_root/aaa.txt;
An error will be reportedopen() "/etc/nginx/$document_root/aaa.txt" failed (2: No such file or directory) in /etc/nginx/nginx.conf:xxx
The variables after include are not parsed
业精于勤,荒于嬉;行成于思,毁于随。
There were no variables when including it. Variables only appeared very later.
http://nginx.org/en/docs/ngx_core_module.html#include
Syntax: include file | mask;Default: —Context: anyIncludes another file, or files matching the specified mask, into configuration. Included files should consist of syntactically correct directives and blocks.
Usage example:
include mime.types; include vhosts/*.conf;
There were no variables when including it. Variables only appeared very later.
http://nginx.org/en/docs/ngx_core_module.html#include
Syntax: include file | mask;
Default: —
Context: any
Includes another file, or files matching the specified mask, into configuration. Included files should consist of syntactically correct directives and blocks.
Usage example: