我拥有一个像 xyz.com 这样的域,我正在尝试使用 haproxy 重定向其他 ip 的子域。
我在服务器上使用 tomcat,并使用 haproxy 将端口 80 上的传入请求重定向到端口 8080。
Like;
www.xyz.com -> 10.0.0.1
www.xyz.com/abc -> 10.0.0.2
or abc.xyz.com -> 10.0.0.2
Run Code Online (Sandbox Code Playgroud)
为了进行这种重定向,我该如何设置 haproxy?