我正在使用 wildfly undertow load balancer ,我在standalone-load-balancer.xml 中添加了以下配置,但我的请求没有被重定向?我将反向代理处理程序和主机添加到 Undertow 子系统:
<handlers>
<reverse-proxy name="keycloak-handler">
<host name="keycloak-host" outbound-socket-binding="remote-host" path="/auth"/>
</reverse-proxy>
</handlers>
然后我将远程主机的出站套接字绑定定义为:
<outbound-socket-binding name="remote-host">
<remote-destination host="192.168.1.5" port="8443"/>
</outbound-socket-binding>
然后将反向代理添加到一个位置:
<host name="default-host">
<location name="/auth" handler="keycloak-handler"/>
<filter-ref name="load-balancer"/>
</host>