Proxy server and Reverse proxy server

25 年 7 月 31 日 星期四 (已编辑)
335 字
2 分钟

proxy server

Forward proxy flow: traffic flows from user's device (A) to forward proxy (B) to Internet to origin server (C)

A forward proxy, often called a proxy, proxy serer, or web proxy, is a server tha sits in front of a group of client machines. When those computers make requests to sites and services on the internet, the proxy server intercepts those requests and then communicates with web servers on behalf of those clients, like a middleman.

For example:

in a standard internet communication, computer A would reach out directly to computer C, with the client sending requests to the origin server and the origin server responding to the client.

When a forward proxy is in place, A will instead send requests to B, which will then forward the request to C. C will then send a response to B, which will forward the response back to A.

reverse proxy

Reverse proxy flow: traffic flows from user's device (D) to Internet to reverse proxy (E) to origin server (F)

A reverse proxy is a server that sits in front of one or more web servers, intercepting requests from clients. This is different from a forward proxy, where the proxy sits in front of the clients. With a reverse proxy, when clients send requests to the origin server of a website, those requests are intercepted at the network edge(the edge of the network is geographically close to the device) by the reverse proxy server.

For eaxmple:

Typically all requests from D would go directly to F, and F would send responses directly to D.

With a reverse proxy, all requests from D will go directly to E, and E will send its requests to and receive responses from F. E will then pass along the appropriate responses to D.

Difference between a forward and reverse proxy

A forward proxy sits in front of a client and ensures that no origin server ever communicates directly with that specific client.

A reverse proxy sits infront of an origin server and ensures that no client ever communicates directly with that origin server.

文章标题:Proxy server and Reverse proxy server

文章作者:Jorthan

文章链接:https://jorthan.com/posts/proxy-server-and-reverse-proxy[复制]

最后修改时间:


商业转载请联系站长获得授权,非商业转载请注明本文出处及文章链接,您可以自由地在任何媒体以任何形式复制和分发作品,也可以修改和创作,但是分发衍生作品时必须采用相同的许可协议。
本文采用CC BY-NC-SA 4.0进行许可。