Nginx HTTP Configure Hierarchy
2016-10-17 18:19:09 0 举报
Nginx HTTP Configure Hierarchy 描述了 Nginx 配置文件的组织方式。它遵循一种层级结构,以便更好地管理和理解配置项。主要组成部分包括:全局块、events 块、http 块和 server 块。全局块包含了影响整个服务器的配置设置;events 块定义了与连接、读取和写入请求相关的配置;http 块定义了与 HTTP 协议相关的全局参数,如错误页面、MIME 类型等;server 块包含了针对特定虚拟主机的配置设置,如监听地址、域名、location 等。通过这种结构化的层次化配置,可以更容易地实现复杂的 Web 服务器设置和管理。
作者其他创作
大纲/内容
http loc conf
void** srv_conf
server
void** loc_conf
void *
locaction
modulescommands
location
conf_ctx
number ofhttp module.referred byctx_index
...
index
number ofall nginx module.referred bymodule-index
cycle
location name
main
void** main_conf
\"location\" command
ctx
机构管理后台
http core module
location conf
parent vs child
main conf
http main conf
create
\"server\" command
location's loc conf
server's loc conf
http ctx
server conf
http module
name array
modulecommands
ctx_index
server's srv conf
http srv conf
srv conf array
0 条评论
下一页