Forum Discussion

Gregt_33960's avatar
Gregt_33960
Icon for Nimbostratus rankNimbostratus
Mar 20, 2008

URI Filtering

 

Hello,

 

 

I am new to the group and at the request of and F5 engineer I am posting in hopes of desperate assistance. I have HA pair of Big IP LTMs with a pool of web servers behind them that support multiple Websphere application Environments. Each WAS instance has a unique port.. for example Test runs on port 80 and training runs on 8080 and sand box on 9080. I am trying to use URI filtering, via an IRule to have the F5 parse the request and send the HTTP GET to the proper pool. That part works fine. The issue is that on my WAS servers I do not have servlets called "test, train, sandbox" so when the F5 send the HTTP GET /sandbox to my WAS I get error 404.

 

 

I have been told there is way to code an IRule that will be able to support what I am trying to do. Below is a logic snippet of what I am attempting.

 

 

The logic behind the iRule should be something like:

 

 

when HTTP_REQUEST {

 

if URI == /sandbox

 

select pool_sandbox

 

URI == URI without /sandbox (ie, http://host.com/sandbox/index.jsp should look like http://host.com/index.jsp)

 

elseif URI == /somethingelse

 

etc..

 

 

 

 

Any assitance or insight would be greatly appreciated.

 

regards

 

Greg

 

2 Replies

  • Have you tried looking at the following documentation

     

     

    http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=129

     

  • Hi,

     

     

    you should try to post in the proper forum.

     

     

    This part of the forum is for iControl and not iRules.

     

     

    People who may be able to help you will miss your post

     

     

    check this part of the forum, you'll find a lots of posts with the same kind of request:

     

    Click here

     

     

    HTH