Forum Discussion
tkrn_92652
Aug 26, 2011Nimbostratus
Redirect to Pool based upon URL
The following is our problem. We have multiple customers on the same middleware. Each middleware operates on a separate instance/port so each customer has their own port for various reasons. How can I create a lookup table to a data based of the content based after the / in the URL
Below gives you more a visual of what I am trying to do. ANY direction would be great. The F5's are brand new to us and trying to figure them out since no one here has experience with them.
Thanks!
http://virtual_ip/customer_a (F5)
host1:8080 (JBOSS HTTP)
host2:8080 (JBOSS HTTP)
http://virtual_ip/customer_b (F5)
host1:8081 (JBOSS HTTP)
host2:8081 (JBOSS HTTP)
http://virtual_ip/customer_c (F5)
host1:8082 (JBOSS HTTP)
host2:8082 (JBOSS HTTP)
- Michael_YatesNimbostratusHi tkrn4,
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/customer_a*" { pool pool.for.set.1.on.port.8080 } "/customer_b*" { pool pool.for.set.1.on.port.8081 } "/customer_c*" { pool pool.for.set.1.on.port.8082 } } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects