F5 irule with RESTful services

Posted by Kyle Hayes on Stack Overflow See other posts from Stack Overflow or by Kyle Hayes
Published on 2009-04-07T18:00:49Z Indexed on 2010/05/03 22:48 UTC
Read the original article Hit count: 292

Filed under:
|
|
|

I'm trying to come up with a rule on our F5 to direct traffic to our Tomcat server appropriately. We are deploying separate WAR files for each RESTful service. So, we would like to have the following URIs as an example:

/services/quiz/01234/ /services/user/54321/

Where 'quiz' and 'user' are quiz.war and user.war respectively. We want to direct the traffic at the F5 level for /services/ to be the root and the rest of the URI to be directed to the Tomcat server.

How do we accomplish this?


Edit

The browser url for a resource would look like http://www.domain.com/services/quiz/01234/

I want BIG-IP to send the request to tomcat as http://tomcatserver:8080/quiz/01234/

so basically remove /services and append everything after it to the tomcat domain. I would think this would be an easy regex, right?

© Stack Overflow or respective owner

Related posts about tomcat

Related posts about java