1. Forward Proxy: The Agent object is the client;
For example, some companies control the company computer can only access the local area network and a few external network URLs, then the company needs a proxy server, the employee computer request the network URL is sent through the proxy server (proxy server will check whether the site is allowed by the company, such as the company can only let employees visit Baidu), At this point the Proxy proxy object is the employee computer (client).
client > Proxy Server > Baidu Server
2. Reverse proxy: The object of the proxy is the server.
Now many companies are using nginx load balancer, the client request the company's URL, in fact, was accepted by Nginx, and then distributed to the following Tomcat server. (There are more than one tomcat doing load balancing, load balancing takes into account session sessions) then the Nginx proxy object is the Tomcat server.
Client > Proxy server > Company Server
Forward proxy, Reverse proxy