nginx 配置反向代理-能否配置指定的 localip-localport

2019 年 6 月 26 日
 tom82232

client ------> proxy(nginx) ------> server clientIP proxyIP localIP serverIP

如上,和 server 通信的 localIP 能够配置吗? 比如,把 localIP 配置如下 192.168.1.1:1000 ~ 192.168.1.1:5000 192.168.2.2:2000 ~ 192.168.2.2:6000 2.2.2.2:8000 ~ 2.2.2.2:12000

1939 次点击
所在节点    问与答
3 条回复
bearice
2019 年 6 月 26 日
proxy_bind
tom82232
2019 年 6 月 27 日
@bearice 谢谢,还有 proxy_bind 可以是 不是本机的 IP 地址么
bearice
2019 年 6 月 27 日
不可以,除非使用 TRANSPARENT_PROXY

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/577713

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX