Forum Discussion

vasu_95875's avatar
vasu_95875
Icon for Nimbostratus rankNimbostratus
Dec 07, 2009

how to forward to a java specific context root

Hi

 

I am new bee to F5 BIG-IP.

 

 

How to forward http request to specific context root of the pool member.

 

 

There is no index.html pages

 

 

http --> to forward a member at --> hostname:8787/bank/banknds/login/login.jsp

 

 

using BIG-IP LTM 6400 BIG-IP 10.0.1

 

 

thanks

 

vasu

 

 

  • Hi Vasu,

    Here is an example that may help

     
     when HTTP_REQUEST { 
        if {[HOST::uri] eq "/" } { 
            HTTP::redirect "http://[HTTP::host]:8787/bank/banknds/login/login.jsp" 
          } 
     } 
     

    I hope this helps

    Bhattman
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    I'm guessing you probably want to rewrite the URI, not redirect the client to the internal web server port. If so, you can use HTTP::uri to rewrite the URI when a client requests the root document, /:

     
     when HTTP_REQUEST { 
        if {[HTTP::uri] eq "/" } { 
           HTTP::uri "/bank/banknds/login/login.jsp" 
        } 
     } 
     

    Aaron