Forum Discussion

Kyle_Hayes_5309's avatar
Kyle_Hayes_5309
Icon for Nimbostratus rankNimbostratus
Apr 08, 2009

RESTful services with Tomcat

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?

 

 

The browser uri 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.

 

 

Any help is appreciated. I am very new to this.

 

 

Thanks!

 

Kyle
  • Kyle: Check out this write up by Joe on URI parsing. I think it will be useful.

     

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

     

     

    -Matt