Forum Discussion
andy_22730
Nimbostratus
Apr 10, 2007Need IRule to forward urls to different VIPs
Hello:
I'm just starting out w/ iRules and our new BigIP 6800s.
I have a basic web-app setup: VIPS for http, https that forward to a Pool of linux hosts with Tomcat for our we app....
Apr 10, 2007
This iRule will work (assuming you are terminating the ssl connection on the BIG-IP - if not, then there is no way to inspect the payload).
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/images" } {
pool insert_image_pool_name_here
}
}
Just change "insert_image_pool_name_here" with the name of you pool containing the image servers and you should be set.
The above example will just direct the content at the different pool. If you truely want to do a HTTP redirect, then you'll have to have another virtual setup using the image pool and use the HTTP::redirect command to send the redirect directive back to the browser.
-Joe
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