电子产品贬值率
12-15 194
nginx根据参数转发到不同服务器 |
nginx参数配置详解,nginx的常用功能
事件配置影响Nginx服务器和用户之间的网络连接;http配置大多数功能,如代理、缓存、日志定义和第三方模块的配置;服务器配置虚拟主机的相关参数。一个http块中可以有多个服务器Nginx配置文件。 主要分为四个部分:main(全局设置)、server(主机设置)、upstream(上游服务器设置,主要是反向代理和负载均衡相关配置)和location(URL匹配具体位置后)
nginx文件结构模块理解:全局块:配置全局影响nginx的指令。 Generally,thereisausergrouprunningthenginxserver,thenginxprocesspidstoragepath,thelogstoragepath,andtheconfigurationfileintroduction,allowingthegenerationofworkerp.1.nginxhasmanyparametersthatcanbeconfiguredinthehttp,server,andlocationblocks.Thedifferencesbetweenthethreeareasfollows,takingclient_max_body_sizeasanexample:Thedifferencebetweenthethreeis:http{}controlsallrequestsreceivedbynginx
编译安装的主文件配置在/etc/nginx/nginx.conf//主配置文件格式mainblock:主配置部分,即全局配置部分,对http和mail有效//配置Nginx服务器的事件模块相关的事件{}//http/htt主要包括配置运行Nginx服务器的用户(组)、允许生成的worker进程数、进程PID存储路径、日志存储路径和类型,以及配置文件的介绍。
后台-插件-广告管理-内容页尾部广告(手机) |
标签: nginx的常用功能
相关文章
发表评论
评论列表