1 Reply Latest reply on Mar 11, 2019 3:03 AM by gipathak

    How to configure Wildfly load balancing with redirect ?

    gipathak

      I am working with wildfly undertow load balancer , and I added following configuration in standalone-load-balancer.xml but my request is not getting redirected? I added reverse proxy handler and host to the Undertow subsystem as :

       

       

      <handlers>

            <reverse-proxy name="keycloak-handler">

            <host name="keycloak-host" outbound-socket-binding="remote-host" path="/auth"/>

            </reverse-proxy>

      </handlers>

      And then I defined outbound socket bindings for remote hosts as :

       

       

      <outbound-socket-binding name="remote-host">

                  <remote-destination host="192.168.1.5" port="8443"/>

      </outbound-socket-binding>

      And then added the reverse proxy to a location as :

       

       

      <host name="default-host">

          <location name="/auth" handler="keycloak-handler"/>

          <filter-ref name="load-balancer"/>

      </host>