文章分类 -  WEB-Nginx

摘要:反向代理从传输上分可以分为2种:1:同步模式(apache-mod_proxy和squid)2:异步模式(lighttpd和nginx)在nginx的文档说明中,提到了异步传输模式并提到它可以减少后端连接数和压力,这是为何?下面就来讲解下传统的代理(apache/squid)的同步传输和lighttpd,nginx的异步传输的差异。看图:同步传输:浏览器发起请求,而后请求会立刻被转到后台,于是在浏览器和后台之间就建立了一个通道。在请求发起直到请求完成,这条通道都是一直存在的。异 步传输:浏览器发起请求,请求不会立刻转到后台,而是将请求数据(header)先收到nginx上,然后nginx再把这 阅读全文
posted @ 2013-08-12 20:55 星空刺
摘要:Nginx 关于 Rewrite 执行顺序详解第一篇: break 和 last 的区别Rewrite 模块概述REFER:http://wiki.nginx.org/NginxHttpRewriteModule#rewriteIf the directives of this module are given at the server level, then they are carried out before the location of the request is determined. If in that selected location there are further 阅读全文
posted @ 2013-08-12 20:53 星空刺