Home  >  Article  >  Web Front-end  >  What are forward proxy and reverse proxy

What are forward proxy and reverse proxy

一个新手
一个新手Original
2017-09-11 09:28:422337browse

Forward proxy and reverse proxy

A simple understanding is: The reverse proxy runs on the server side. The reverse proxy server receives the client request and then forwards it to other backends. The server requests resources and then returns them to the client
The forward proxy runs on theclient. Because a certain target server cannot be accessed, it can be accessed through the intermediary proxy server (which is an access channel)

The biggestdifference is that one runs on the client and the other runs on the server

Forward proxy: It is a proxy located between the client and the origin server. In order to obtain content from the original server, the client sends a request to the proxy and specifies the target (original server), and then the proxy forwards the request to the original server and returns the obtained content to the client. A typical use of a forward proxy is to provide access to the Internet for LAN clients within the firewall. Forward proxies can also use caching features (provided by mod_cache) to reduce network usage. When we use a proxy to access the Internet, it is a forward proxy.

Reverse proxy is a type of proxy server. It obtains resources from the back-end server (such as a Web server) based on the client's request, and then returns these resources to the client. [1] Unlike the forward proxy, which acts as a medium to return resources obtained from the Internet to the associated client, the reverse proxy is used as a proxy on the server side (such as a Web server), not the client. . Clients can access many different resources through forward proxies, while reverse proxies are used by many clients to access resources on different back-end servers without knowing the existence of these back-end servers. Instead, they think that all resources come from For this reverse proxy server

The above is the detailed content of What are forward proxy and reverse proxy. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn