Forward proxy and reverse proxy

Source: Internet
Author: User
1. Forward proxy

 

The forward proxy is located between the original server and the client, and its role is to send requests in place of the client, for example, to protect the client, or to flip the wall (the condition is that the proxy server must not be limited by GFW, currently, most VPs instances outside China are purchased. The process is as follows:

1. The client initiates a request to the proxy server to notify the proxy server of the website blocked by gFW.

2. the proxy server accesses the blocked website and obtains the content of the blocked website.

3. the proxy server returns the obtained content to the client to view the websites blocked by gFW.

At this time, the original server does not know what the client actually accesses it. It protects and shields the client.

When the client initiates a request, GFW considers that the client is requesting a valid website and does not know what the access is, so it cannot block the firewall.

 

2. Reverse Proxy

 

The reverse proxy is mainly used for load balancing to share the pressure on the master server. The process is as follows:

1. The client accesses www.origin.com

2. Because the reverse proxy is configured on the server where www.origin.com is located, the request will be sent to www.revproxy.com as a condition (for example, the proxy containing/Proxy/in the URL will be sent out, then)

3. the proxy server processes the request and sends the response back to the client.

It is worth noting that when you access www.origin.com, the request header in the HTTP request is still www.origin.com, but it is actually handed over to www.revproxy.com

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.