1. 程式人生 > >nginx實現反向代理、負載均衡-技術流ken

nginx實現反向代理、負載均衡-技術流ken

詳細 反向代理服務 就是 oba ref cnblogs 緩存 lan 案例

本篇博文是《nginx實現動態/靜態文件緩存-技術流ken》的二部曲。將詳細介紹nginx如何實現反向代理以及負載均衡技術,並輔以實戰案例。

反向代理--“反向代理(Reverse Proxy)方式是指以代理服務器來接受internet上的連接請求,然後將請求轉發給內部網絡上的服務器,並將從服務器上得到的結果返回給internet上請求連接的客戶端,此時代理服務器對外就表現為一個反向代理服務器。”

負載均衡--“網絡專用術語,負載均衡建立在現有網絡結構之上,它提供了一種廉價有效透明的方法擴展網絡設備和服務器的帶寬、增加吞吐量、加強網絡數據處理能力、提高網絡的靈活性和可用性。”

2.nginx實現反向代理

1.幾個概念

反向代理:在收到客戶端請求之後,會修目標IP地址和端口

正向代理:在收到客戶端請求之後,會修源IP地址和端口

上遊服務器:代理服務器後端的哪些真正給客戶端提供服務的節點,這樣的服務器稱之為上遊服務器

下遊服務器:客戶端就是下遊節點vhttps://baobao.baidu.com/article/8e250ea7127f8a5d0b52c0881407017a.html
https://baobao.baidu.com/article/8e250ea7127f8a5d0b52c0881407017a.html
https://baobao.baidu.com/article/8e250ea7127f8a5d0b52c0881407017a.html

https://baobao.baidu.com/article/8e250ea7127f8a5d0b52c0881407017a.html
https://baobao.baidu.com/article/8e250ea7127f8a5d0b52c0881407017a.html
https://baobao.baidu.com/article/8e250ea7127f8a5d0b52c0881407017a.html
https://baobao.baidu.com/article/8e250ea7127f8a5d0b52c0881407017a.html
https://baobao.baidu.com/article/8e250ea7127f8a5d0b52c0881407017a.html
https://baobao.baidu.com/article/8e250ea7127f8a5d0b52c0881407017a.html
https://baobao.baidu.com/article/8e250ea7127f8a5d0b52c0881407017a.html

nginx實現反向代理、負載均衡-技術流ken