Preface: Today to explain to colleagues the proxy server and reverse proxy server, draw a picture to explain.
Proxy servers typically fall into two categories, the forwarding agent (forward proxy) server and the reverse proxy (reverse proxy) server. The forwarding proxy server is often referred to as the proxy server, and the proxy server we refer to is the forwarding proxy server.
Forwarding Proxy Server
A normal forwarding Proxy server is an intermediate server between the client and the original server. In order to get content from the original server, the client sends a request to the proxy server, and then the proxy server obtains the content from the original server and returns it to the client. The client must specifically configure the forwarding agent to access other sites, such as configuring the proxy server address and port number in the browser.
A typical application of a forwarding proxy is to provide access to an external Internet network for internal clients behind the firewall , such as corporate intranet access to external Internet sites through the company's unified proxy. The forwarding Proxy server can also use caching to mitigate the original server load and provide a response speed.
Reverse proxy Server
Reverse proxy server Instead, it looks like a normal Web server to the client. The client does not make any special configuration. The client sends a normal request to get the contents of the space that the reverse proxy belongs to. The reverse proxy determines where to send these requests, and then returns the requested content as if it were the original server itself.
A typical application of a reverse proxy server is to provide access to external Internet users to servers behind the firewall . The reverse proxy can be used to provide load balancing on multiple back-end servers, or to provide caching for slower back-end servers. In addition, the reverse proxy can easily map multiple servers to the same URL space.
Difference between the two
The similarities between the two are that both the user and the server are intermediaries, and the user requests and results are forwarded. The main difference is:
(1) The internal of the forwarding agent is the client, and the internal of the reverse proxy is the server. That is, the client in the intranet accesses the external network through the forwarding proxy server, while the external user accesses the internal server through the reverse proxy.
(2) The forwarding agent usually accepts any request sent by the client, and the reverse proxy usually only accepts requests to the specified server.
Two graphs simply say proxy server and reverse proxy server