【摘要】概述 Nginx 配置由全局块、events 块、http 块、server 块、location 块五层嵌套组成, 层级关系为: # 全局块(顶层,不属于任何块) events { ... } # 连接、IO、进程模型配置 http { # 所有HTTP服务总入口 # http全局配置 serve 阅读全文