1. 正向代理
1.1 简介
- https://blog.csdn.net/wkh___/article/details/113807080?spm=1001.2014.3001.5506
- https://www.cnblogs.com/yanjieli/p/15229907.html
1.2 请求逻辑
+-----------------+ +-----------------+ +-----------------+
| 内网集群客户端 | | Nginx代理服务器 | | 外网目标服务器 |
+-----------------+ +-----------------+ +-----------------+
| | | | | |
| 1. 发送HTTP请求 |------->| 2. 接收HTTP请求 |------->| 3. 处理HTTP请求 |
| |<-------| |<-------| |
| 4. 接收HTTP响应 | | 5. 发送HTTP响应 | | 6. 返回HTTP响应 |
| | | | | |
+-----------------+ +-----------------+ +-----------------+
2. Nginx使用
2.1 在有外网权限的服务器中启动Nginx
docker run --name nginx -itd -v /data/zhongzichao/nginx/nginx.conf:/etc/nginx/nginx.conf -p 8888:8888 zzc932/nginx:https_proxy
2.2 在内网集群设置代理
export http_proxy=10.27.197.11:8888
export https_proxy=10.27.197.11:8888
2.3 验证
curl www.baidu.com
标签:8888,nginx,+-----------------+,局域网,Nginx,https,机器配置,HTTP From: https://www.cnblogs.com/nishiliu/p/17266378.html