Difference between forward proxy and reverse proxy [nginx Reading Notes]

Source: Internet
Author: User
Concept of forward proxy

A forward proxy, the legendary proxy, works like a stepping stone,
To put it simply,
As a user, I cannot access a website, but I can access a proxy server.
This proxy server can access the website that I cannot access
So I first connected the proxy server and told him that I needed the content that could not be accessed.
The proxy server returns it to me.

From the perspective of the website, only one record is recorded when the proxy server obtains the content.
Sometimes the user's request is unknown, and the user's information is hidden, depending on the agent does not tell the website

The conclusion is that the forward proxy is a server located between the client and the origin server. To get content from the original server, the client sends a request to the proxy and specifies the target (original server ), then the proxy transfers 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.

Reverse Proxy Concept

Example:
User Access http://ooxx.me/readme
But there is no readme page on ooxx. Me.
He secretly retrieves it from another server and then sends it to the user as his content.

But the user does not know
This is normal, and users are generally stupid.

The server corresponding to the ooxx. Me domain name mentioned here sets the reverse proxy function.

The conclusion is that reverse proxy is the opposite. for a client, it is like an original server, and the client does not need to perform any special settings. The client sends a common request to the content in the namespace (name-space) of the reverse proxy, and then the reverse proxy determines where (original server) to transfer the request, and return the obtained content to the client, just as the content is the same as its own.

Differences

SlavePurposeFor example:

The typical purpose of forward proxy is to provide a way to access the Internet for LAN clients in the firewall. Forward proxy can also use the buffer feature to reduce network usage. A typical purpose of reverse proxy is to provide the server behind the firewall to Internet users for access. The reverse proxy can also provide Load Balancing for multiple backend servers or buffer services for slow backend servers.

In addition, the reverse proxy can also enable advanced URL policies and management technologies to make the web pages in different Web server systems exist in the same URL space at the same time.

SlaveSecurityDescription:

The forward proxy allows the client to access any website and hide the client itself. Therefore, you must take security measures to ensure that only authorized clients provide services.

The reverse proxy is transparent to the outside, and visitors do not know that they are accessing a 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.