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.
What I need is an iRule to take any incoming request that contains a reference to our static images (/images) and re-direct that to a different pool, one which has apache http to serve this static content. Having tomcat serve this static content is too slow.
But I need this to work in a way that is transparent to the tomcat application.
Can the F5 and some iRules accomplish this?
Any pointers on how I would start to build such a rule?
- 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 } }
- andy_22730
Nimbostratus
Ok, first- thanks for the quick response. - From what you stated in your original question, a full redirect is probably not needed. I just put it in there because you mentioned you wanted to redirect to a different pool.
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