Forward Proxy and Reverse proxy

Source: Internet
Author: User

To sum up is:

1, the agent when the client knows the server, through the proxy to access the server, then the agent is the server

2, reverse proxy when the client does not know the server side, the server knows the client, through the proxy to access the server, then the agent is the client

The concept of a forward proxy

The forward agent, the legendary agent, works like a springboard,
To put it simply,
I am a user, I cannot access a website, but I can access a proxy server
This proxy server, he can access the site that I can't access
So I first connected to the proxy server and told him that I needed the content that I could not access the site
Proxy server go fetch it back and then return it to me

From the point of view of the website, there is only one record when the proxy server is fetching the content.
Sometimes not know is the user's request, also hides the user's information, depending on the agent does not tell the website

The conclusion is that the forward proxy is a server between the client and the original server (Origin server), in order to get the content from the original server, the client sends a request to the agent and specifies the target (the original server), then the agent forwards the request to the original server and returns the obtained content to the client. The client must make some special settings to use the forward proxy.

The concept of reverse proxy

Continue with examples:
Example user Access Http://ooxx.me/readme
But there's no Readme page on ooxx.me.
He was secretly taken back from another server and then spit it out to the user as his own content.

But the user does not know
This is normal, the user is generally very stupid

The ooxx.me mentioned here has the reverse proxy function set by the server that corresponds to the domain name.

The conclusion is that the reverse proxy is just the opposite, for the client it is like the original server, and the client does not need to make any special settings. The client sends a normal request to the content in the reverse proxy's namespace (name-space), and then the reverse proxy determines where (the originating server) forwards the request and returns the obtained content to the client, as if the content had been its own.

Forward Proxy and Reverse proxy

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.