我正在尝试在 2 个不同的服务器前使用 nginx 代理
example.com , example1.com >> nginx 10.0.0.1 >>>> 10.0.0.2 , 10.0.0.3
stream {
server {
listen 1935;
proxy_pass 10.0.0.2:1936;
proxy_protocol on;
}
server {
listen 1935;
proxy_pass 10.0.0.3:1936;
proxy_protocol on;
}
}
Run Code Online (Sandbox Code Playgroud)
我已经检查了 tcp负载平衡指南,但我找不到如何使它工作