The previous answers were accurate, but perhaps too terse.
(以前的答案是准确的,但也许太简洁了。)
I will try to add some examples. (我会尝试添加一些例子。)
First of all, the word "proxy" describes someone or something acting on behalf of someone else.
(首先,“代理”一词描述了代表其他人行事的某人或某事。)
In the computer realm, we are talking about one server acting on the behalf of another computer.
(在计算机领域,我们谈论的是代表另一台计算机的一台服务器。)
For the purposes of accessibility, I will limit my discussion to web proxies - however, the idea of a proxy is not limited to websites.
(出于可访问性的目的,我将讨论限制在Web代理中 - 但是,代理的概念不仅限于网站。)
FORWARD proxy (前进代理)
Most discussion of web proxies refers to the type of proxy known as a "forward proxy."
(大多数关于Web代理的讨论都是指被称为“转发代理”的代理类型。)
The proxy event, in this case, is that the "forward proxy" retrieves data from another web site on behalf of the original requestee.
(在这种情况下,代理事件是“转发代理”代表原始被请求者从另一个网站检索数据。)
A tale of 3 computers (part I) (3台电脑的故事(第一部分))
For an example, I will list three computers connected to the internet.
(例如,我将列出连接到互联网的三台计算机。)
Normally, one would connect directly from X --> Z.
(通常,人们可以直接从X --> Z.
连接X --> Z.
)
However, in some scenarios, it is better for Y --> Z
on behalf of X
, which chains as follows: X --> Y --> Z
.
(但是,在某些情况下,代表X
Y --> Z
更好,其链如下: X --> Y --> Z
)
Reasons why X would want to use a forward proxy server: (X希望使用转发代理服务器的原因:)
Here is a (very) partial list of uses of a forward proxy server.
(这是转发代理服务器的(非常)部分使用列表。)
REVERSE proxy (REVERSE代理)
A tale of 3 computers (part II) (3台电脑的故事(第二部分))
For this example, I will list three computers connected to the internet.
(在本例中,我将列出连接到互联网的三台计算机。)
Normally, one would connect directly from X --> Z.
(通常,人们可以直接从X --> Z.
连接X --> Z.
)
However, in some scenarios, it is better for the administrator of Z
to restrict or disallow direct access and force visitors to go through Y first.
(但是,在某些情况下, Z
管理员最好限制或禁止直接访问并强制访问者首先通过Y.)
So, as before, we have data being retrieved by Y --> Z
on behalf of X
, which chains as follows: X --> Y --> Z
. (因此,和以前一样,我们有Y --> Z
代表X
检索数据,其链如下: X --> Y --> Z
)
What is different this time compared to a "forward proxy," is that this time the user X
does not know he is accessing Z
, because the user X
only sees he is communicating with Y
.
(与“转发代理”相比,这次的不同之处在于,这次用户X
不知道他正在访问Z
,因为用户X
只看到他正在与Y
通信。)
The server Z
is invisible to clients and only the reverse proxy Y
is visible externally.
(服务器Z
对客户端是不可见的,只有反向代理Y
在外部可见。)
A reverse proxy requires no (proxy) configuration on the client side. (反向代理不需要客户端(代理)配置。)
The client X
thinks he is only communicating with Y
( X --> Y
), but the reality is that Y
forwarding all communication ( X --> Y --> Z
again).
(客户端X
认为他只与Y
( X --> Y
)通信,但实际情况是Y
转发所有通信( X --> Y --> Z
再次)。)
Reasons why Z would want to set up a reverse proxy server: (Z想要设置反向代理服务器的原因:)
In the above scenarios, Z
has the ability to choose Y
.
(在上述场景中, Z
有能力选择Y
)
Links to topics from the post: (链接到帖子的主题:)
Content Delivery Network (内容分发网络)
forward proxy software (server side) (转发代理软件(服务器端))