nginx的proxy_pass是正向代理还是反向代理
时间: 2023-10-12 12:05:22 浏览: 97
proxy_pass在Nginx中是用于实现反向代理的。它的作用是将客户端的请求转发到指定的服务器上,并将服务器的响应返回给客户端。通过配置proxy_pass指令,可以将请求代理到一个或多个后端服务器,实现负载均衡和高可用性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [nginx(六十)proxy模块(一)proxy_pass指令](https://blog.csdn.net/wzj_110/article/details/128005138)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [【Nginx配置教程】upstream与proxy_pass实现反向代理配置教程](https://blog.csdn.net/weixin_39978444/article/details/111780174)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文