
代理和反向代理
代理 (正向)代理 代理一般是指正向代理,比如翻墙软件shadowsocks就是一种正向代理。 shadowsocks通过socks 5协议 在代理服务器上, 代理我们(client)去访问被墙的资源(google/twitter/Facebook等服务器)。 A proxy server, sometimes referred to as a forward proxy, is a server that routes traffic between client(s) and another system, usually external to the network. By doing so, it can regulate traffic according to preset policies, convert and mask client IP addresses, enforce security protocols, and block unknown traffic. 反向代理 反向代理是说我们(client)被代理了, 我们自己还不知道。 我们以为和我们打交道的(处理我们的请求)的是nginx 服务器,其实nginx真正处理我们请求的是ngix后面的upstream在 处理我们的请求逻辑。 ...