Forward proxy
The forward proxy is a server located between the client and the origin server. In order to obtain content from the origin server, the client sends a request to the agent and specifies the target (original server), and then the agent forwards it to the origin server Request and return the obtained content to the client.
Purpose
1. Access to previously inaccessible resources
2. Can be cached to accelerate access to resources
3. Authorize client access and authenticate online
4. Record user access records (Internet behavior management), hide user information from the outside
Look at the picture:
Reverse proxy
The actual operation mode of Reverse Proxy refers to that the proxy server accepts the connection request on the internet, then forwards the request to the server on the internal network, and returns the result obtained from the server to the internet to request the connection Client, the server behaves as a server externally in this era
Purpose
1. To ensure the security of the internal network, prevent web attacks, large-scale websites, usually use the reverse proxy as the public network access address, and the web server is the internal network
2. Load balance, optimize the load of the website through reverse generation server
Look at the picture: