Forum Discussion
Komtanoo_Pinpim
Nimbostratus
Feb 27, 2007redirect traffic basing on the answer from webserver
Hi,
My company just bought a 2 bigip boxes. We have a weird requirement to redirect some traffic basing on answer of webserver.
It works like this:
1.Client sends request to url like: http://hostname/get_file/1234.zip
2.BigIP forwards the request to 'webserver pool'.
3.Webserver pool does some permission checking and responds with the header containing: “X-Reproxy-Static: 1234.zip”.
4.BigIP scans the response and forward the request to 'static file pool'.
I'm not sure if irule can do this. I read the manual and tried to compose the irule but it doesn't work, the output is just the white blank page.
when HTTP_RESPONSE {
if {[string length [HTTP::header X-Reproxy-Static]] > 0} {
pool static-pool
}
}
------------
The reason that we need this rule is because those files need user permission checking and we don't want to spoon feed large files by apache webservers, but static webservers in static pool instead. There is a software solution called "PerlBal", it has this feature, but some ppl in my company don't want to have another layer of software to increase the point of failure in our system. It'll be great if irule can handle this.
Thanks.
Kem
- hoolio
Cirrostratus
Hello Kem, - Komtanoo_Pinpim
Nimbostratus
I've never thought about inserting the encrypted token like that, that's interesting. I could even inserting encrypted token by web pool and do the decrypt on static pool,( by modifying or adding a plugin into static webserver), without touching irule. - hoolio
Cirrostratus
SOL6141 (Click here) has information on using HTTP::retry to make another HTTP request after the initial request has been responded to. If using encoded tokens doesn't pan out, you might be able to use HTTP::retry with your original method of having the BIG-IP make both sets of requests. - Komtanoo_Pinpim
Nimbostratus
Cool, arkk the solution says, "LTM versions 9.2 - 9.2.3", but what we have is "BIG-IP 9.1.2 Build 40.2", are they compatible ? I haven't tried it since I have to be on site when playing with BigIP according to our paranoid protocol. - hoolio
Cirrostratus
HTTP::retry is a feature in 9.2.x and above. I don't think it's available in 9.1.x. You can upgrade from the maintenance release branch (9.1.x) to the latest feature release version, 9.2.5, following the steps in the 9.2.5 release notes. It's a pretty straightforward process of backing up your config to a UCS, and installing the upgrade via an .im file. - Komtanoo_Pinpim
Nimbostratus
thanks
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