Forum Discussion
JustinS_88353
Oct 15, 2010Nimbostratus
Irule help 302 + maintain URI
I've got a high bandwidth application where I want to use the F5 to monitor a pool of available servers and send requests to them. However, I want to use a 302 redirect (or something else if you know...
JustinS_88353
Oct 15, 2010Nimbostratus
I'm thinking something like the following snippet. I'm a total newb and haven't found any documentation yet. This would be where 10.1.1.[1-3] are pool members. being monitored. I'll test this out in the morning when I have some access, however I suspect this is close-ish. Is there anyway around editing the IRules anytime I want to add capacity? Is this even close to right?
Thanks again,
Justin
when HTTP_REQUEST {
switch [LB::select] {
"10.1.1.1." {
HTTP::respond "http://10.1.1.1""[HTTP::uri]"
}
"10.1.1.2." {
HTTP::respond "http://10.1.1.2""[HTTP::uri]"
}
"10.1.1.3." {
HTTP::respond "http://10.1.1.3""[HTTP::uri]"
}
}
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