回答
收藏
分享
举报
Nginx正向与反向代理使用场景交流
提问于2020-09-06 16:44

浏览 904

大家在日常使用Nginx中用到的反向和正向代理的都使用到哪些场景,都解决了哪些问题。

已修改于2023-03-17 02:13



写下您的回答
发表回答
全部回答(1)

按点赞数排序

按时间排序

反向代理用来隐藏服务器细节,作为负载均衡就能组建分布式集群,提供容灾、高可伸缩性等;

正向代理用来隐藏客户端细节,比如翻墙、跳转机访问、隐藏IP地址等。

赞同

1

回复举报

回答于2020-09-09 10:07



回复陶辉
回复
提问者
浩聪
这家伙很懒还未留下介绍~
5
文章
15
问答
0
粉丝
相关问答

第1种。参考官方文档:

“When buffering is enabled, nginx receives a response from the proxied server as soon as possible, saving it into the buffers set by the proxy_buffer_size and proxy_buffers directives. If the whole response does not fit into memory, a part of it can be saved to a temporary file on the disk. Writing to temporary files is controlled by the proxy_max_temp_file_size and proxy_temp_file_write_size directives.

When buffering is disabled, the response is passed to a client synchronously, immediately as it is received. nginx will not try to read the whole response from the proxied server. The maximum size of the data that nginx can receive from the server at a time is set by the proxy_buffer_size directive.”

点赞 0
浏览 752