2 Replies Latest reply on Jun 21, 2017 5:18 AM by Keshav Mundhra

    Redirect wildfly 10 <server-name> to netscalar url

    Keshav Mundhra Newbie

      Dear All

       

      I have configured cluster setup of wildfly 10.3 in two servers say server-a and server-b. Netscalar load balancer http://lb.domain.com is pointing to both the servers. I want to create a functionality in which http://server-a/ or http://server-b/ redirects to http://lb.domain.com

       

      Please help!

        • 1. Re: Redirect wildfly 10 <server-name> to netscalar url
          Tomaz Cerar Master

          10.3? there is no such version released....

           

          what are you using http or ajp for load balancing? can you share you undertow subsystem configuration?

          • 2. Re: Redirect wildfly 10 <server-name> to netscalar url
            Keshav Mundhra Newbie

            Wildfly version is 10.0.1

            Undertow configuration is:

            <subsystem xmlns="urn:jboss:domain:undertow:3.1">

             

             

            <buffer-cache name="default"/>

             

             

             

             

            <server name="default-server">

             

             

            <ajp-listener name="ajp" socket-binding="ajp"/>

             

             

            <http-listener name="default" socket-binding="http" enable-http2="true" redirect-socket="https" max-parameters="5000" max-post-size="209715200"/>

             

             

            <https-listener name="https" security-realm="ApplicationRealm" socket-binding="https" enable-http2="true"/>

             

             

             

             

            <host name="default-host" alias="localhost">

             

             

            <location name="/" handler="welcome-content"/>

             

             

            <location name="/web-resources" handler="web-resources"/>

             

             

            <filter-ref name="gzipFilter" predicate="regex[pattern='(?:application/javascript|text/css|text/html|text/xml|application/json)(;.*)?', value=%{o,Content-Type}, full-match=true]"/>

             

             

            <filter-ref name="XFrameOptions"/>

             

             

            <single-sign-on/>

             

             

            </host>

             

             

            </server>

             

             

             

             

            <servlet-container name="default" disable-caching-for-secured-pages="false">

             

             

            <jsp-config/>

             

             

            <websockets/>

             

             

            </servlet-container>

             

             

             

             

            <handlers>

             

             

            <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>

             

             

            <file name="web-resources" path="${jboss.home.dir}/web-resources" directory-listing="true"/>

             

             

            </handlers>

             

             

             

             

            <filters>

             

             

            <response-header name="XFrameOptions" header-value="SAMEORIGIN" header-name="X-Frame-Options"/>

             

             

            <gzip name="gzipFilter"/>

             

             

            </filters>

             

             

            </subsystem>