博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
反向代理为什么叫反向代理_什么是反向代理?
阅读量:2508 次
发布时间:2019-05-11

本文共 2295 字,大约阅读时间需要 7 分钟。

反向代理为什么叫反向代理

When we talk about servers, it’s common to hear the term “reverse proxy”.

当我们谈论服务器时,通常会听到“反向代理”一词。

In this post I want to explain what is a reverse proxy, and what it’s useful for.

在这篇文章中,我想解释什么是反向代理,以及它的作用。

Let’s first talk about what’s a proxy. A proxy is a server that accepts connections from clients, which actively configured the proxy server on their machines, in their network settings.

首先让我们谈谈什么是代理 。 代理服务器是一种接受客户端连接的服务器,客户端在其计算机上的网络设置中主动配置了代理服务器。

When a client makes a connection to a server, the requests always pass through that proxy server.

当客户端与服务器建立连接时,请求始终通过该代理服务器。

This practice has several uses. Companies and organizations can set up proxy servers to filter connections, provide more security, and log traffic. Without using the proxy, clients can’t reach the outside network. Proxy servers are also useful to provide privacy and avoid network restrictions imposed by countries governments.

这种做法有多种用途。 公司和组织可以设置代理服务器以过滤连接,提供更高的安全性并记录流量。 如果不使用代理,客户端将无法访问外部网络。 代理服务器还可用于提供隐私并避免各国政府施加的网络限制。

A reverse proxy on the other hand is set up by the server. It’s completely transparent to clients, they don’t know this middleman exists, but it does a very useful job on the servers, filtering requests and sending them to the appropriate service that handles them.

另一方面, 反向代理是由服务器设置的。 它对客户端是完全透明的,他们不知道这个中间人的存在,但是它在服务器上做得非常有用,可以过滤请求并将其发送到处理它们的适当服务。

It’s common to , and have services written for example in Node.js listening on internal ports, unaccessible from the outside.

通常将 ,并使用例如Node.js编写的服务侦听内部端口,这些端口无法从外部访问。

Nginx in this case serves as the main request handler, and sends the appropriate requests, for example linking special subfolders or URLs to specific services.

在这种情况下,Nginx充当主请求处理程序,并发送适当的请求,例如将特殊的子文件夹或URL链接到特定的服务。

We can have 2 different Node.js apps doing 2 completely different things, and the user does not need to know about that.

我们可以有2个不同的Node.js应用程序来做2个完全不同的事情,并且用户不需要知道这一点。

Beside this routing functionality, which is what us developers will mostly use it for, reverse proxies are also great to filter and protect from attacks serving as a firewall, to introduce caching, to configure SSL, to handle load balancing, A/B testing, and much more.

除了这种路由功能(这是我们开发人员最常使用的路由功能)之外,反向代理还可以很好地过滤和防御充当防火墙的攻击,引入缓存,配置SSL,处理负载平衡,A / B测试,以及更多。

翻译自:

反向代理为什么叫反向代理

转载地址:http://ummgb.baihongyu.com/

你可能感兴趣的文章
表达式求值-201308081712.txt
查看>>
centos中安装tomcat6
查看>>
从Vue.js窥探前端行业
查看>>
学习进度
查看>>
poj3368 RMQ
查看>>
“此人不存在”
查看>>
github.com加速节点
查看>>
解密zend-PHP凤凰源码程序
查看>>
python3 序列分片记录
查看>>
Atitit.git的存储结构and 追踪
查看>>
atitit 读书与获取知识资料的attilax的总结.docx
查看>>
B站 React教程笔记day2(3)React-Redux
查看>>
找了一个api管理工具
查看>>
C++——string类和标准模板库
查看>>
zt C++ list 类学习笔记
查看>>
git常用命令
查看>>
探讨和比较Java和_NET的序列化_Serialization_框架
查看>>
1、jQuery概述
查看>>
Object 一些方法
查看>>
数组比较大小的几种方法及math是方法
查看>>