Forward Proxy and Reverse proxy

Source: Internet
Author: User

"Original works, technical exchanges. Allow reprint, please be sure to use hyperlinks in the form of the original source of the article, author information. If there is any mistake, please correct me.

/**

Author:lihaibo

date:1/25/2016

*/

See a few better today about the writing Proxy server article (already at the end of the attached address), this article is a few good text after the change and the actual situation to explain the agent and agent working principle. Forward Proxy (the concept of Forward Proxy)

Forward agent, that is, the legendary agent, he works like a springboard, simply said, I am a user, I can not access a website, but I have access to a proxy server This proxy server, he can access the site I cannot access so I first connected to the proxy server, Tell him I need the content proxy that can't access the Web site to fetch it back and return it to me

From the point of view of the site, only when the proxy server to fetch the content of a record sometimes do not know the user's request, but also hide the user's information, depending on the agent told the site

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.

1.1 forward Proxy simple diagram:1.2 Simple schematic diagram of the forward proxy:Server B does not know that user A is in the request, Server Z hides the request for a1.3 Simple simulation Reality diagram: B does not know that user A is borrowing money, proxy server z hides the identity of a. 2.1 Forward proxy actual application fan Wall Diagram 2.2 forward proxy fan Wall principle 2.3 Simulate reality fan wall diagram: (fq= forward proxy +vpn+cache)Cache(caching) Technology and proxy service technologies are tightly linked (not just forward proxies, but reverse proxies also useCache(caching) technology. Also as shown, if the userAAccess serverBA dataJBefore, someone already passed the proxy serverZAccess to a serverBThe dataJ, then the proxy serverZwill put the dataJSave for a while if someone happens to take that dataJ, then the proxy serverZNo longer accessing the serverBWhile putting the cached dataJSend directly to UsersA。 This technology isCacheThe term is calledcache hit. If there are more like users a users to access the proxy server z< Span style= "padding:0px; margin:0px; " >, then these users can be directly from the proxy server j without going all the way to the server b download data. 3.1 The client Rights Management diagram for the forward proxy3.2 Principle of client rights management for forward proxy3.3Real-world application of client rights Management for forward proxy"Summarize" The forward proxy is a server located between the client and the original server (Origin server), in order to obtain content from the original server, the client sends a request to the agent and specifies the target (the original server ). The agent then forwards the request to the original server and returns the obtained content to the client. The client must set up a forward proxy server, if you know the IP address of the forward proxy and the port of the agent. ==================================================== above is the forward proxy/below is the reverse proxy =========================================== = = Reverse Proxyconcept of (reverse proxy)Reverse Proxy common software:Fikker, Nginx, Squid

Continue Example: Example user access Http://ooxx.me/readme but there is no Readme page on ooxx.me he stole it from another server and spit it out to the user as his content.

But the user doesn't know it's normal, the user is generally 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. 1.1 Hidden Resource Server (one or cluster) 1.2 Hidden server principle1.3 Real case of hidden server 2.1 Reverse proxy cluster with cache 2.2 Principle of reverse proxy cluster with cache 3.3 CDN acceleration with cached reverse proxy cluster3.4 CDN Acceleration principle with cached reverse proxy clusterSpecific analysis:"Summarize" The reverse proxy conclusion is the opposite of the forward proxy, which is like the original server for the client, and the client does not need to make any special settings. Client-to-reverse proxy namespaces the content in (name-space) sends a normal request, 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.

Reference Document:http://blog.csdn.net/cywosp/article/details/38026809

Http://www.cnblogs.com/zhwl/archive/2013/09/25/3338807.html

http://z00w00.blog.51cto.com/515114/1031287

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.